file: BodyDef.aus

class: BodyDef

[22:7] extends: FxObj

Wraps jbox2d's BodyDef (com.almasb.fxgl.physics.box2d.dynamics.BodyDef), the blueprint passed to World.createBody. Holds all the data needed to construct a rigid body: type, position, angle, linear / angular velocity, damping, sleep flags, fixed rotation, bullet hint, gravity scale, and user data. Fields are public Kotlin properties so the wrapper exposes paired getters / setters that go through getField / setField on the underlying AJO.

Methods