from tdw.object_data.composite_object.sub_object.hinge_dynamic import HingeDynamic
Dynamic data for a hinge, motor, or spring sub-object of a composite object.
-
angleThe angle in degrees of the hinge relative to its resting position. -
velocityThe angular velocity in degrees per second of the hinge. -
sub_object_idThe ID of this sub-object.
HingeDynamic(angle, velocity, sub_object_id)
| Parameter | Type | Default | Description |
|---|---|---|---|
| angle | float | The angle in degrees of the hinge relative to its resting position. | |
| velocity | float | The angular velocity in degrees per second of the hinge. | |
| sub_object_id | int | The ID of this sub-object. |