Physics2DServerSingleton.BodyState

Values

ValueMeaning
bodyStateTransform0

Constant to set/get the current transform matrix of the body.

bodyStateLinearVelocity1

Constant to set/get the current linear velocity of the body.

bodyStateAngularVelocity2

Constant to set/get the current angular velocity of the body.

bodyStateSleeping3

Constant to sleep/wake up a body, or to get whether it is sleeping.

bodyStateCanSleep4

Constant to set/get whether the body can sleep.

Meta