gs.materials.Tool#
gs.materials.Tool marks an entity as a kinematically scripted collider that couples to soft and particle media. Use it for actuators, graspers, or moving boundaries whose motion you drive directly while they push on MPM, PBD, or other deformable entities.
- class genesis.engine.materials.tool.Tool(*, use_visual_raycasting: bool = False, friction: float = 0.0, coup_softness: float = 0.01, collision: bool = True, sdf_res: int = 128) None[source]#
Material for tool entities.
- Parameters:
friction (float, optional) – Friction coefficient. Default is 0.0.
coup_softness (float, optional) – Softness of coupling interaction. Default is 0.01.
collision (bool, optional) – Whether the tool participates in collision. Default is True.
sdf_res (int, optional) – Resolution of the SDF grid. Default is 128.