Add mjs_attachToSite for attaching a body to a site.

PiperOrigin-RevId: 684432183
Change-Id: I7100bebfb6521f9dbfbb07f31490b2b9298bf18c
This commit is contained in:
Alessio Quaglino
2024-10-10 07:11:16 -07:00
committed by Copybara-Service
parent 694bdebc19
commit cdb167f275
10 changed files with 180 additions and 52 deletions
+9 -9
View File
@@ -3813,6 +3813,15 @@ mjs_attachFrame
Attach child frame to a parent body, return the attached frame if success or NULL otherwise.
.. _mjs_attachToSite:
mjs_attachToSite
~~~~~~~~~~~~~~~~
.. mujoco-include:: mjs_attachToSite
Attach child body to a parent site, return the attached body if success or NULL otherwise.
.. _mjs_detachBody:
mjs_detachBody
@@ -4126,15 +4135,6 @@ mjs_getSpec
Get spec from body.
.. _mjs_getSpecFromFrame:
mjs_getSpecFromFrame
~~~~~~~~~~~~~~~~~~~~
.. mujoco-include:: mjs_getSpecFromFrame
Get spec from frame.
.. _mjs_findBody:
mjs_findBody