| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="ChainIK3D" inherits="IKModifier3D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | A [SkeletonModifier3D] to apply inverse kinematics to bone chains containing an arbitrary number of bones. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | Base class of [SkeletonModifier3D] that automatically generates a joint list from the bones between the root bone and the end bone. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | </tutorials> |
| 11 | <methods> |
| 12 | <method name="get_end_bone" qualifiers="const"> |
| 13 | <return type="int" /> |
| 14 | <param index="0" name="index" type="int" /> |
| 15 | <description> |
| 16 | Returns the end bone index of the bone chain. |
| 17 | </description> |
| 18 | </method> |
| 19 | <method name="get_end_bone_direction" qualifiers="const"> |
| 20 | <return type="int" enum="SkeletonModifier3D.BoneDirection" /> |
| 21 | <param index="0" name="index" type="int" /> |
| 22 | <description> |
| 23 | Returns the tail direction of the end bone of the bone chain when [method is_end_bone_extended] is [code]true[/code]. |
| 24 | </description> |
| 25 | </method> |
| 26 | <method name="get_end_bone_length" qualifiers="const"> |
| 27 | <return type="float" /> |
| 28 | <param index="0" name="index" type="int" /> |
| 29 | <description> |
| 30 | Returns the end bone tail length of the bone chain when [method is_end_bone_extended] is [code]true[/code]. |
| 31 | </description> |
| 32 | </method> |
| 33 | <method name="get_end_bone_name" qualifiers="const"> |
| 34 | <return type="String" /> |
| 35 | <param index="0" name="index" type="int" /> |
| 36 | <description> |
| 37 | Returns the end bone name of the bone chain. |
| 38 | </description> |
| 39 | </method> |
| 40 | <method name="get_joint_bone" qualifiers="const"> |
| 41 | <return type="int" /> |
| 42 | <param index="0" name="index" type="int" /> |
| 43 | <param index="1" name="joint" type="int" /> |
| 44 | <description> |
| 45 | Returns the bone index at [param joint] in the bone chain's joint list. |
| 46 | </description> |
| 47 | </method> |
| 48 | <method name="get_joint_bone_name" qualifiers="const"> |
| 49 | <return type="String" /> |
| 50 | <param index="0" name="index" type="int" /> |
| 51 | <param index="1" name="joint" type="int" /> |
| 52 | <description> |
| 53 | Returns the bone name at [param joint] in the bone chain's joint list. |
| 54 | </description> |
| 55 | </method> |
| 56 | <method name="get_joint_count" qualifiers="const"> |
| 57 | <return type="int" /> |
| 58 | <param index="0" name="index" type="int" /> |
| 59 | <description> |
| 60 | Returns the joint count of the bone chain's joint list. |
| 61 | </description> |
| 62 | </method> |
| 63 | <method name="get_root_bone" qualifiers="const"> |
| 64 | <return type="int" /> |
| 65 | <param index="0" name="index" type="int" /> |
| 66 | <description> |
| 67 | Returns the root bone index of the bone chain. |
| 68 | </description> |
| 69 | </method> |
| 70 | <method name="get_root_bone_name" qualifiers="const"> |
| 71 | <return type="String" /> |
| 72 | <param index="0" name="index" type="int" /> |
| 73 | <description> |
| 74 | Returns the root bone name of the bone chain. |
| 75 | </description> |
| 76 | </method> |
| 77 | <method name="is_end_bone_extended" qualifiers="const"> |
| 78 | <return type="bool" /> |
| 79 | <param index="0" name="index" type="int" /> |
| 80 | <description> |
| 81 | Returns [code]true[/code] if the end bone is extended to have a tail. |
| 82 | </description> |
| 83 | </method> |
| 84 | <method name="set_end_bone"> |
| 85 | <return type="void" /> |
| 86 | <param index="0" name="index" type="int" /> |
| 87 | <param index="1" name="bone" type="int" /> |
| 88 | <description> |
| 89 | Sets the end bone index of the bone chain. |
| 90 | </description> |
| 91 | </method> |
| 92 | <method name="set_end_bone_direction"> |
| 93 | <return type="void" /> |
| 94 | <param index="0" name="index" type="int" /> |
| 95 | <param index="1" name="bone_direction" type="int" enum="SkeletonModifier3D.BoneDirection" /> |
| 96 | <description> |
| 97 | Sets the end bone tail direction of the bone chain when [method is_end_bone_extended] is [code]true[/code]. |
| 98 | </description> |
| 99 | </method> |
| 100 | <method name="set_end_bone_length"> |
| 101 | <return type="void" /> |
| 102 | <param index="0" name="index" type="int" /> |
| 103 | <param index="1" name="length" type="float" /> |
| 104 | <description> |
| 105 | Sets the end bone tail length of the bone chain when [method is_end_bone_extended] is [code]true[/code]. |
| 106 | </description> |
| 107 | </method> |
| 108 | <method name="set_end_bone_name"> |
| 109 | <return type="void" /> |
| 110 | <param index="0" name="index" type="int" /> |
| 111 | <param index="1" name="bone_name" type="String" /> |
| 112 | <description> |
| 113 | Sets the end bone name of the bone chain. |
| 114 | [b]Note:[/b] The end bone must be the root bone or a child of the root bone. If they are the same, the tail must be extended by [method set_extend_end_bone] to modify the bone. |
| 115 | </description> |
| 116 | </method> |
| 117 | <method name="set_extend_end_bone"> |
| 118 | <return type="void" /> |
| 119 | <param index="0" name="index" type="int" /> |
| 120 | <param index="1" name="enabled" type="bool" /> |
| 121 | <description> |
| 122 | If [param enabled] is [code]true[/code], the end bone is extended to have a tail. |
| 123 | The extended tail config is allocated to the last element in the joint list. In other words, if you set [param enabled] to [code]false[/code], the config of the last element in the joint list has no effect in the simulated result. |
| 124 | </description> |
| 125 | </method> |
| 126 | <method name="set_root_bone"> |
| 127 | <return type="void" /> |
| 128 | <param index="0" name="index" type="int" /> |
| 129 | <param index="1" name="bone" type="int" /> |
| 130 | <description> |
| 131 | Sets the root bone index of the bone chain. |
| 132 | </description> |
| 133 | </method> |
| 134 | <method name="set_root_bone_name"> |
| 135 | <return type="void" /> |
| 136 | <param index="0" name="index" type="int" /> |
| 137 | <param index="1" name="bone_name" type="String" /> |
| 138 | <description> |
| 139 | Sets the root bone name of the bone chain. |
| 140 | </description> |
| 141 | </method> |
| 142 | </methods> |
| 143 | </class> |