from tdw.object_data.composite_object.composite_object_dynamic import CompositeObjectDynamic
Dynamic data for a composite object and its sub-objects.
Note that not all sub-objects will be in this output data because some of them don't have specialized dynamic properties.
For example, non-machines have dynamic positions, velocities, etc. but these can be found in Transforms and Rigidbodies data, respectively.
-
object_idThe ID of the root object. -
hingesA dictionary ofHingeDynamicsub-objects, which includes all hinges, springs, and motors. -
lightsA dictionary ofLightDynamicsub-objects such as lamp lightbulbs.
CompositeObjectDynamic(object_id, hinges, lights)
| Parameter | Type | Default | Description |
|---|---|---|---|
| object_id | int | The ID of the root object. | |
| hinges | Dict[int, HingeDynamic] | A dictionary of HingeDynamic sub-objects, which includes all hinges, springs, and motors. |
|
| lights | Dict[int, LightDynamic] | A dictionary of LightDynamic sub-objects such as lamp lightbulbs. |