from tdw.object_data.rigidbody import Rigidbody
Dynamic object rigidbody data. Note that this excludes static rigidbody data such as the mass of the object.
-
velocityThe directional velocity of the object. -
angular_velocityThe angular velocity of the object. -
sleepingIf True, the object isn't moving.
Rigidbody(velocity, angular_velocity, sleeping)
| Parameter | Type | Default | Description |
|---|---|---|---|
| velocity | np.ndarray | The directional velocity of the object. | |
| angular_velocity | np.ndarray | The angular velocity of the object. | |
| sleeping | bool | If True, the object isn't moving. |