From 32ace6d303c20ddc61ec5362c95e564c0665bd38 Mon Sep 17 00:00:00 2001 From: Taylor Howell Date: Sun, 8 Mar 2026 01:54:47 -0800 Subject: [PATCH] MuJoCo Warp documentation: box-box collisions PiperOrigin-RevId: 880376073 Change-Id: Ia7f285ff7bfaf5472790a559294e905749575402 --- doc/mjwarp/index.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/mjwarp/index.rst b/doc/mjwarp/index.rst index 5f11d73b..85ab28ce 100644 --- a/doc/mjwarp/index.rst +++ b/doc/mjwarp/index.rst @@ -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 `__ +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.