ObjectStatic

June 1, 2023 ยท View on GitHub

from tdw.object_data.object_static import ObjectStatic

Static data for an object. This data won't change between frames.


Fields

  • object_id The unique ID of the object.

  • name The name of the model.

  • category The semantic category of the object.

  • kinematic If True, this object is kinematic, and won't respond to physics.

  • segmentation_color The RGB segmentation color for the object as a numpy array: [r, g, b]

  • mass The mass of the object.

  • size The size of the object as a numpy array: [width, height, length]

  • dynamic_friction The dynamic friction of the object.

  • static_friction The static friction of the object.

  • bounciness The bounciness of the object.


Functions

__init__

ObjectStatic(name, object_id, mass, segmentation_color, size, dynamic_friction, static_friction, bounciness, kinematic)

ParameterTypeDefaultDescription
namestrThe name of the object.
object_idintThe unique ID of the object.
massfloatThe mass of the object.
segmentation_colornp.ndarrayThe segmentation color of the object.
sizenp.ndarrayThe size of the object.
dynamic_frictionfloatThe dynamic friction of the object.
static_frictionfloatThe static friction of the object.
bouncinessfloatThe bounciness of the object.
kinematicboolIf True, this object is kinematic, and won't respond to physics.