Debian Codegraph @

doc/classes/TwoBoneIK3D.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <class name="TwoBoneIK3D" inherits="IKModifier3D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Rotation based intersection of two circles inverse kinematics solver.
5 </brief_description>
6 <description>
7 This [IKModifier3D] requires a pole target. It provides deterministic results by constructing a plane from each joint and pole target and finding the intersection of two circles (disks in 3D).
8 This IK can handle twist by setting the pole direction. If there are more than one bone between each set bone, their rotations are ignored, and the straight line connecting the root-middle and middle-end joints are treated as virtual bones.
9 </description>
10 <tutorials>
11 </tutorials>
12 <methods>
13 <method name="get_end_bone" qualifiers="const">
14 <return type="int" />
15 <param index="0" name="index" type="int" />
16 <description>
17 Returns the end bone index.
18 </description>
19 </method>
20 <method name="get_end_bone_direction" qualifiers="const">
21 <return type="int" enum="SkeletonModifier3D.BoneDirection" />
22 <param index="0" name="index" type="int" />
23 <description>
24 Returns the end bone's tail direction when [method is_end_bone_extended] is [code]true[/code].
25 </description>
26 </method>
27 <method name="get_end_bone_length" qualifiers="const">
28 <return type="float" />
29 <param index="0" name="index" type="int" />
30 <description>
31 Returns the end bone tail length of the bone chain when [method is_end_bone_extended] is [code]true[/code].
32 </description>
33 </method>
34 <method name="get_end_bone_name" qualifiers="const">
35 <return type="String" />
36 <param index="0" name="index" type="int" />
37 <description>
38 Returns the end bone name.
39 </description>
40 </method>
41 <method name="get_middle_bone" qualifiers="const">
42 <return type="int" />
43 <param index="0" name="index" type="int" />
44 <description>
45 Returns the middle bone index.
46 </description>
47 </method>
48 <method name="get_middle_bone_name" qualifiers="const">
49 <return type="String" />
50 <param index="0" name="index" type="int" />
51 <description>
52 Returns the middle bone name.
53 </description>
54 </method>
55 <method name="get_pole_direction" qualifiers="const">
56 <return type="int" enum="SkeletonModifier3D.SecondaryDirection" />
57 <param index="0" name="index" type="int" />
58 <description>
59 Returns the pole direction.
60 </description>
61 </method>
62 <method name="get_pole_direction_vector" qualifiers="const">
63 <return type="Vector3" />
64 <param index="0" name="index" type="int" />
65 <description>
66 Returns the pole direction vector.
67 If [method get_pole_direction] is [constant SkeletonModifier3D.SECONDARY_DIRECTION_NONE], this method returns [code]Vector3(0, 0, 0)[/code].
68 </description>
69 </method>
70 <method name="get_pole_node" qualifiers="const">
71 <return type="NodePath" />
72 <param index="0" name="index" type="int" />
73 <description>
74 Returns the pole target node that constructs a plane which the joints are all on and the pole is trying to direct.
75 </description>
76 </method>
77 <method name="get_root_bone" qualifiers="const">
78 <return type="int" />
79 <param index="0" name="index" type="int" />
80 <description>
81 Returns the root bone index.
82 </description>
83 </method>
84 <method name="get_root_bone_name" qualifiers="const">
85 <return type="String" />
86 <param index="0" name="index" type="int" />
87 <description>
88 Returns the root bone name.
89 </description>
90 </method>
91 <method name="get_target_node" qualifiers="const">
92 <return type="NodePath" />
93 <param index="0" name="index" type="int" />
94 <description>
95 Returns the target node that the end bone is trying to reach.
96 </description>
97 </method>
98 <method name="is_end_bone_extended" qualifiers="const">
99 <return type="bool" />
100 <param index="0" name="index" type="int" />
101 <description>
102 Returns [code]true[/code] if the end bone is extended to have a tail.
103 </description>
104 </method>
105 <method name="is_using_virtual_end" qualifiers="const">
106 <return type="bool" />
107 <param index="0" name="index" type="int" />
108 <description>
109 Returns [code]true[/code] if the end bone is extended from the middle bone as a virtual bone.
110 </description>
111 </method>
112 <method name="set_end_bone">
113 <return type="void" />
114 <param index="0" name="index" type="int" />
115 <param index="1" name="bone" type="int" />
116 <description>
117 Sets the end bone index.
118 </description>
119 </method>
120 <method name="set_end_bone_direction">
121 <return type="void" />
122 <param index="0" name="index" type="int" />
123 <param index="1" name="bone_direction" type="int" enum="SkeletonModifier3D.BoneDirection" />
124 <description>
125 Sets the end bone tail direction when [method is_end_bone_extended] is [code]true[/code].
126 </description>
127 </method>
128 <method name="set_end_bone_length">
129 <return type="void" />
130 <param index="0" name="index" type="int" />
131 <param index="1" name="length" type="float" />
132 <description>
133 Sets the end bone tail length when [method is_end_bone_extended] is [code]true[/code].
134 </description>
135 </method>
136 <method name="set_end_bone_name">
137 <return type="void" />
138 <param index="0" name="index" type="int" />
139 <param index="1" name="bone_name" type="String" />
140 <description>
141 Sets the end bone name.
142 [b]Note:[/b] The end bone must be a child of the middle bone.
143 </description>
144 </method>
145 <method name="set_extend_end_bone">
146 <return type="void" />
147 <param index="0" name="index" type="int" />
148 <param index="1" name="enabled" type="bool" />
149 <description>
150 If [param enabled] is [code]true[/code], the end bone is extended to have a tail.
151 </description>
152 </method>
153 <method name="set_middle_bone">
154 <return type="void" />
155 <param index="0" name="index" type="int" />
156 <param index="1" name="bone" type="int" />
157 <description>
158 Sets the middle bone index.
159 </description>
160 </method>
161 <method name="set_middle_bone_name">
162 <return type="void" />
163 <param index="0" name="index" type="int" />
164 <param index="1" name="bone_name" type="String" />
165 <description>
166 Sets the middle bone name.
167 [b]Note:[/b] The middle bone must be a child of the root bone.
168 </description>
169 </method>
170 <method name="set_pole_direction">
171 <return type="void" />
172 <param index="0" name="index" type="int" />
173 <param index="1" name="direction" type="int" enum="SkeletonModifier3D.SecondaryDirection" />
174 <description>
175 Sets the pole direction.
176 The pole is on the middle bone and will direct to the pole target.
177 The rotation axis is a vector that is orthogonal to this and the forward vector.
178 [b]Note:[/b] The pole direction and the forward vector shouldn't be colinear to avoid unintended rotation.
179 </description>
180 </method>
181 <method name="set_pole_direction_vector">
182 <return type="void" />
183 <param index="0" name="index" type="int" />
184 <param index="1" name="vector" type="Vector3" />
185 <description>
186 Sets the pole direction vector.
187 This vector is normalized by an internal process.
188 If the vector length is [code]0[/code], it is considered synonymous with [constant SkeletonModifier3D.SECONDARY_DIRECTION_NONE].
189 </description>
190 </method>
191 <method name="set_pole_node">
192 <return type="void" />
193 <param index="0" name="index" type="int" />
194 <param index="1" name="pole_node" type="NodePath" />
195 <description>
196 Sets the pole target node that constructs a plane which the joints are all on and the pole is trying to direct.
197 </description>
198 </method>
199 <method name="set_root_bone">
200 <return type="void" />
201 <param index="0" name="index" type="int" />
202 <param index="1" name="bone" type="int" />
203 <description>
204 Sets the root bone index.
205 </description>
206 </method>
207 <method name="set_root_bone_name">
208 <return type="void" />
209 <param index="0" name="index" type="int" />
210 <param index="1" name="bone_name" type="String" />
211 <description>
212 Sets the root bone name.
213 </description>
214 </method>
215 <method name="set_target_node">
216 <return type="void" />
217 <param index="0" name="index" type="int" />
218 <param index="1" name="target_node" type="NodePath" />
219 <description>
220 Sets the target node that the end bone is trying to reach.
221 </description>
222 </method>
223 <method name="set_use_virtual_end">
224 <return type="void" />
225 <param index="0" name="index" type="int" />
226 <param index="1" name="enabled" type="bool" />
227 <description>
228 If [param enabled] is [code]true[/code], the end bone is extended from the middle bone as a virtual bone.
229 </description>
230 </method>
231 </methods>
232 <members>
233 <member name="setting_count" type="int" setter="set_setting_count" getter="get_setting_count" default="0">
234 The number of settings.
235 </member>
236 </members>
237 </class>