IGravitasBody
Interface in Gravitas namespace
Interface in Gravitas namespace
Represents an implementation of a Gravitas body handling physics operations and proxying.
Read-Only
The rigidbody currently being used by this body. Either the body's own or a proxy's.
Read-Only
The rigidbody belonging to this body.
Read-Only
The transform currently being used by this body. Either the body's own or a proxy's.
Gets or sets the angular velocity of the currently used rigidbody.
Read-Only
The local position of this body's proxy, if available.
Gets or sets the angular velocity of the currently used rigidbody.
Read-Only
Whether or not this body is landed on solid ground.
Read-Only
Whether or not this body currently has a proxy assigned.
Adds a force to this body, sent to either this body's rigidbody or a proxy's.
force The force to apply to this body.
forceMode The type of force to apply.
Adds a torque to this body, sent to either this body's rigidbody or a proxy's.
torque The torque to apply to this body.
forceMode The type of torque force to apply.
Assigns the given proxy to this body.
proxy The proxy to assign to this body.
Destroys this body's current proxy.
Orients the body or its proxy to the given up direction at the given orientation speed.
up The up direction to orient to.
orientSpeed The speed at which to orient at.
Updates this body's world position to match the proxy's position within the given field transform.
fieldTransform The transform of the field the body's proxy is in.
Returns a collection of colliders used by this body.