Body
class Body(shape: Shape, x: Double, y: Double) : AbstractPhysicalBody, CollisionBodyInterface
Content copied to clipboard
Class to create a body to add to a world.
Parameters
shape
Shape to bind to body.
x
Position x in world space.
y
Position y in world space.
Constructors
Functions
Link copied to clipboard
Apply force to the center of mass.
Applies force ot body.
Link copied to clipboard
Applies impulse to body's center of mass.
Applies impulse to a point relative to the body's center of mass.