MuJoCo Warp documentation: box-box collisions

PiperOrigin-RevId: 880376073
Change-Id: Ia7f285ff7bfaf5472790a559294e905749575402
This commit is contained in:
Taylor Howell
2026-03-08 01:54:47 -08:00
committed by Copybara-Service
parent 6bc6c11c49
commit 32ace6d303
+15
View File
@@ -971,3 +971,18 @@ The following callbacks are available:
m.callback.control = ctrl_callback
mjw.step(m, d)
assert d.ctrl.numpy()[0, 0] == 2.0
Box-box collisions
------------------
By default, box-box collisions use the general-purpose convex collision pipeline (GJK/EPA). A specialized primitive
collider based on
`engine_collision_box.c <https://github.com/google-deepmind/mujoco/blob/main/src/engine/engine_collision_box.c>`__
is available by setting the ``NATIVECCD`` disable flag:
.. code-block:: python
m.opt.disableflags |= mjw.DisableBit.NATIVECCD
The specialized collider generates up to 8 contact points, compared to up to 4 for the convex pipeline, and may improve
contact stability for tasks involving box stacking or manipulation.