PhysicalBodyInterface

interface PhysicalBodyInterface : TranslatableBody

Functions

Link copied to clipboard
abstract fun applyForce(force: Vec2)

Apply force to the center of mass.

abstract fun applyForce(force: Vec2, contactPoint: Vec2)

Applies force ot body.

Link copied to clipboard
abstract fun applyLinearImpulse(impulse: Vec2)

Applies impulse to body's center of mass.

abstract fun applyLinearImpulse(impulse: Vec2, contactPoint: Vec2)

Applies impulse to a point relative to the body's center of mass.

Link copied to clipboard
abstract fun setStatic()

Sets all mass and inertia variables to zero. Object cannot be moved.

Properties

Link copied to clipboard
abstract var affectedByGravity: Boolean
Link copied to clipboard
abstract var angularDampening: Double
Link copied to clipboard
abstract var angularVelocity: Double
Link copied to clipboard
abstract var density: Double
Link copied to clipboard
abstract var force: Vec2
Link copied to clipboard
abstract var inertia: Double
Link copied to clipboard
abstract var invInertia: Double
Link copied to clipboard
abstract var invMass: Double
Link copied to clipboard
abstract var linearDampening: Double
Link copied to clipboard
abstract var mass: Double
Link copied to clipboard
abstract var particle: Boolean
Link copied to clipboard
abstract var position: Vec2
Link copied to clipboard
abstract var restitution: Double
Link copied to clipboard
abstract var torque: Double
Link copied to clipboard
abstract var velocity: Vec2

Inheritors

Link copied to clipboard