ToolEntity#
A kinematically-scripted collider created from a gs.materials.Tool material. Its motion is prescribed rather than dynamically simulated, and it couples one-way with soft and particle-based media to push, stir, or deform them.
- class genesis.engine.entities.tool_entity.tool_entity.ToolEntity(scene, idx, solver, material, morph, surface, name: str | None = None)[source]#
Bases:
Entity- save_ckpt_kernel(pos: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None), quat: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None), vel: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None), ang: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[source]#
- load_ckpt_kernel(pos: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None), quat: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None), vel: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None), ang: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[source]#
- update_latest_pos(f: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>)[source]#
- copy_frame(source: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>, target: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>)[source]#
- copy_grad(source: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>, target: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>)[source]#
- reset_grad_till_frame(f: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>)[source]#
- get_frame(f: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>, pos: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None), quat: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None), vel: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None), ang: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[source]#
- set_frame(f: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>, pos: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None), quat: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None), vel: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None), ang: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[source]#
- set_frame_add_grad_pos(f: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>, pos_grad: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[source]#
- set_frame_add_grad_quat(f: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>, quat_grad: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[source]#
- set_frame_add_grad_vel(f: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>, vel_grad: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[source]#
- set_frame_add_grad_ang(f: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>, ang_grad: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[source]#
- set_init_state(pos: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None), quat: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[source]#
- set_vel(s: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>, vel: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[source]#
- set_vel_grad(s: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>, vel_grad: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[source]#
- set_ang(s: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>, ang: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[source]#
- set_ang_grad(s: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>, ang_grad: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[source]#
- set_pos(s: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>, pos: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[source]#
- set_pos_grad(s: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>, pos_grad: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[source]#
- set_quat(s: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>, quat: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[source]#
- set_quat_grad(s: <quadrants._lib.core.quadrants_python.DataTypeCxx object at 0x7d180d42b7f0>, quat_grad: NdarrayType(dtype=None, ndim=None, layout=Layout.AOS, needs_grad=None))[source]#
- property uid#
- property idx#
- property scene#
- property solver#
- property material#
- property morph#
- property surface#
- property init_pos#
- property init_quat#