Add childclass support to frames.

PiperOrigin-RevId: 615487831
Change-Id: I0e4d2efd52211701b4286a0b0de84424470a3a47
This commit is contained in:
Alessio Quaglino
2024-03-13 11:29:50 -07:00
committed by Copybara-Service
parent 0d16587135
commit bda03af49a
17 changed files with 195 additions and 46 deletions
+14 -2
View File
@@ -2174,8 +2174,8 @@ defined. Its body name is automatically defined as "world".
:at:`childclass`: :at-val:`string, optional`
If this attribute is present, all descendant elements that admit a defaults class will use the class specified here,
unless they specify their own class or another body with a childclass attribute is encountered along the chain of
nested bodies. Recall :ref:`CDefault`.
unless they specify their own class or another body or frame with a childclass attribute is encountered along the
chain of nested bodies and frames. Recall :ref:`CDefault`.
.. _body-mocap:
@@ -4029,6 +4029,18 @@ Associate this flexcomp with an :ref:`engine plugin<exPlugin>`. Either :at:`plug
Frames specify a coordinate transformation which is applied to all child elements. They disappear during compilation
and the transformation they encode is accumulated in their direct children. See :ref:`frame<frame>` for examples.
.. _frame-name:
:at:`name`: :at-val:`string, optional`
Name of the frame.
.. _frame-childclass:
:at:`childclass`: :at-val:`string, optional`
If this attribute is present, all descendant elements that admit a defaults class will use the class specified here,
unless they specify their own class or another frame or body with a childclass attribute is encountered along the
chain of nested bodies and frames. Recall :ref:`CDefault`.
.. _frame-pos:
:at:`pos`: :at-val:`real(3), "0 0 0"`