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.
-
velocity
The directional velocity of the object. -
angular_velocity
The angular velocity of the object. -
sleeping
If 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. |