Visualization
visualization
¶
Traceable
¶
Bases: Protocol
Anything with a world position that can be followed by a Tracer, e.g. a Body, Site, or Geom.
ArrowConfig
dataclass
¶
Python
ArrowConfig(
pos: Vec3,
vec: Vec3,
color: Vec4,
is_torque: bool,
length_scale: float = 1.0,
width_scale: float = 1.0,
)
length_scale
class-attribute
instance-attribute
¶
Python
length_scale: float = 1.0
Extra multiplier applied on top of MuJoCo's native length scaling, for stretching or shrinking this arrow's length independently of the others.
width_scale
class-attribute
instance-attribute
¶
Python
width_scale: float = 1.0
Extra multiplier applied on top of MuJoCo's native width scaling, for thickening or thinning this arrow's shaft independently of the others.
resolve_arrow_coords
¶
Calculates the 'from' and 'to' points and width for an arrow.