Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 785 Bytes

File metadata and controls

29 lines (17 loc) · 785 Bytes

HingeDynamic

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.


Fields

  • angle The angle in degrees of the hinge relative to its resting position.

  • velocity The angular velocity in degrees per second of the hinge.

  • sub_object_id The ID of this sub-object.


Functions

__init__

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.