The current acceleration vector (ax, ay) of the actor in pixels/second/second. An acceleration pointing down such as (0, 100) may be useful to simulate a gravitational effect.
The current "motion" of the actor, used to calculated sleep in the physics simulation
Gets/sets the acceleration of the actor from the last frame. This does not include the global acc Physics.acc.
The position of the actor last frame (x, y) in pixels
Gets/sets the rotation of the body from the last frame.
The scale of the actor last frame
The velocity of the actor last frame (vx, vy) in pixels/second
The (x, y) position of the actor this will be in the middle of the actor if the Actor.anchor is set to (0.5, 0.5) which is default. If you want the (x, y) position to be the top left of the actor specify an anchor of (0, 0).
The rotation of the actor in radians
The rotational velocity of the actor in radians/second
The scale vector of the actor
The x scalar velocity of the actor in scale/second
The y scalar velocity of the actor in scale/second
The current torque applied to the actor
The current velocity vector (vx, vy) of the actor in pixels/second
Add minimum translation vectors accumulated during the current frame to resolve collisions.
Applies the accumulated translation vectors to the actors position
Sets the old versions of pos, vel, acc, and scale.
Returns a clone of this body, not associated with any actor
Perform euler integration at the specified time step
Flags the shape dirty and must be recalculated in world space
Sets up a box geometry based on the current bounds of the associated actor of this physics body.
If no width/height are specified the body will attempt to use the associated actor's width/height.
By default, the box is center is at (0, 0) which means it is centered around the actors anchor.
Sets up a circle collision geometry with a specified radius in pixels.
By default, the box is center is at (0, 0) which means it is centered around the actors anchor.
Sets up an edge collision geometry with a start point and an end point relative to the anchor of the associated actor of this physics body.
By default, the box is center is at (0, 0) which means it is centered around the actors anchor.
Sets up a convex polygon collision geometry based on a list of of points relative to the anchor of the associated actor of this physics body.
Only convex polygon definitions are supported.
By default, the box is center is at (0, 0) which means it is centered around the actors anchor.
Body describes all the physical properties pos, vel, acc, rotation, angular velocity