from tdw.object_data.object_static import ObjectStatic
Static data for an object. This data won't change between frames.
-
object_idThe unique ID of the object. -
categoryThe semantic category of the object. -
kinematicIf True, this object is kinematic, and won't respond to physics. -
segmentation_colorThe RGB segmentation color for the object as a numpy array:[r, g, b] -
massThe mass of the object. -
sizeThe size of the object as a numpy array:[width, height, length] -
dynamic_frictionThe dynamic friction of the object. -
static_frictionThe static friction of the object. -
bouncinessThe bounciness of the object.
ObjectStatic(name, object_id, mass, segmentation_color, size, dynamic_friction, static_friction, bounciness, kinematic)
| Parameter | Type | Default | Description |
|---|---|---|---|
| name | str | The name of the object. | |
| object_id | int | The unique ID of the object. | |
| mass | float | The mass of the object. | |
| segmentation_color | np.array | The segmentation color of the object. | |
| size | np.array | The size of the object. | |
| dynamic_friction | float | The dynamic friction of the object. | |
| static_friction | float | The static friction of the object. | |
| bounciness | float | The bounciness of the object. | |
| kinematic | bool | If True, this object is kinematic, and won't respond to physics. |