Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 1.6 KB

object_static.md

File metadata and controls

50 lines (30 loc) · 1.6 KB

ObjectStatic

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)

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.