from tdw.object_data.object_static import ObjectStatic
Static data for an object. This data won't change between frames.
-
object_id
The unique ID of the object. -
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.
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.ndarray | The segmentation color of the object. | |
size | np.ndarray | 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. |