0.2.0-dev Download ZIP
44 lines ·2.9 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="BoneAttachment3D" inherits="Node3D" api_type="core" keywords="tag" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | А node that dynamically copies or overrides the 3D transform of a bone in its parent [Skeleton3D]. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | This node selects a bone in a [Skeleton3D] and attaches to it. This means that the [BoneAttachment3D] node will either dynamically copy or override the 3D transform of the selected bone. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | </tutorials> |
| 11 | <methods> |
| 12 | <method name="get_skeleton"> |
| 13 | <return type="Skeleton3D" /> |
| 14 | <description> |
| 15 | Returns the parent or external [Skeleton3D] node if it exists, otherwise returns [code]null[/code]. |
| 16 | </description> |
| 17 | </method> |
| 18 | <method name="on_skeleton_update"> |
| 19 | <return type="void" /> |
| 20 | <description> |
| 21 | A function that is called automatically when the [Skeleton3D] is updated. This function is where the [BoneAttachment3D] node updates its position so it is correctly bound when it is [i]not[/i] set to override the bone pose. |
| 22 | </description> |
| 23 | </method> |
| 24 | </methods> |
| 25 | <members> |
| 26 | <member name="bone_idx" type="int" setter="set_bone_idx" getter="get_bone_idx" default="-1"> |
| 27 | The index of the attached bone. |
| 28 | </member> |
| 29 | <member name="bone_name" type="String" setter="set_bone_name" getter="get_bone_name" default=""""> |
| 30 | The name of the attached bone. |
| 31 | </member> |
| 32 | <member name="external_skeleton" type="NodePath" setter="set_external_skeleton" getter="get_external_skeleton"> |
| 33 | The [NodePath] to the external [Skeleton3D] node. |
| 34 | </member> |
| 35 | <member name="override_pose" type="bool" setter="set_override_pose" getter="get_override_pose" default="false"> |
| 36 | Whether the [BoneAttachment3D] node will override the bone pose of the bone it is attached to. When set to [code]true[/code], the [BoneAttachment3D] node can change the pose of the bone. When set to [code]false[/code], the [BoneAttachment3D] will always be set to the bone's transform. |
| 37 | [b]Note:[/b] This override performs interruptively in the skeleton update process using signals due to the old design. It may cause unintended behavior when used at the same time with [SkeletonModifier3D]. |
| 38 | </member> |
| 39 | <member name="physics_interpolation_mode" type="int" setter="set_physics_interpolation_mode" getter="get_physics_interpolation_mode" overrides="Node" enum="Node.PhysicsInterpolationMode" default="2" /> |
| 40 | <member name="use_external_skeleton" type="bool" setter="set_use_external_skeleton" getter="get_use_external_skeleton" default="false"> |
| 41 | Whether the [BoneAttachment3D] node will use an external [Skeleton3D] node rather than attempting to use its parent node as the [Skeleton3D]. When set to [code]true[/code], the [BoneAttachment3D] node will use the external [Skeleton3D] node set in [member external_skeleton]. |
| 42 | </member> |
| 43 | </members> |
| 44 | </class> |