CompositeObjectDynamic

May 16, 2022 ยท View on GitHub

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.


Fields

  • object_id The ID of the root object.

  • hinges A dictionary of HingeDynamic sub-objects, which includes all hinges, springs, and motors.

  • lights A dictionary of LightDynamic sub-objects such as lamp lightbulbs.


Functions

__init__

CompositeObjectDynamic(object_id, hinges, lights)

ParameterTypeDefaultDescription
object_idintThe ID of the root object.
hingesDict[int, HingeDynamic]A dictionary of HingeDynamic sub-objects, which includes all hinges, springs, and motors.
lightsDict[int, LightDynamic]A dictionary of LightDynamic sub-objects such as lamp lightbulbs.