Rigidbody

June 1, 2023 ยท View on GitHub

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.


Fields

  • velocity The directional velocity of the object.

  • angular_velocity The angular velocity of the object.

  • sleeping If True, the object isn't moving.


Functions

__init__

Rigidbody(velocity, angular_velocity, sleeping)

ParameterTypeDefaultDescription
velocitynp.ndarrayThe directional velocity of the object.
angular_velocitynp.ndarrayThe angular velocity of the object.
sleepingboolIf True, the object isn't moving.