Debian Codegraph @

doc/classes/ConvertTransformModifier3D.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <class name="ConvertTransformModifier3D" inherits="BoneConstraint3D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A [SkeletonModifier3D] that apply transform to the bone which converted from reference.
5 </brief_description>
6 <description>
7 Apply the copied transform of the bone set by [method BoneConstraint3D.set_reference_bone] to the bone set by [method BoneConstraint3D.set_apply_bone] about the specific axis with remapping it with some options.
8 There are 4 ways to apply the transform, depending on the combination of [method set_relative] and [method set_additive].
9 [b]Relative + Additive:[/b]
10 - Extract reference pose relative to the rest and add it to the apply bone's pose.
11 [b]Relative + Not Additive:[/b]
12 - Extract reference pose relative to the rest and add it to the apply bone's rest.
13 [b]Not Relative + Additive:[/b]
14 - Extract reference pose absolutely and add it to the apply bone's pose.
15 [b]Not Relative + Not Additive:[/b]
16 - Extract reference pose absolutely and the apply bone's pose is replaced with it.
17 [b]Note:[/b] Relative option is available only in the case [method BoneConstraint3D.get_reference_type] is [constant BoneConstraint3D.REFERENCE_TYPE_BONE]. See also [enum BoneConstraint3D.ReferenceType].
18 [b]Note:[/b] If there is a rotation greater than [code]180[/code] degrees with constrained axes, flipping may occur.
19 </description>
20 <tutorials>
21 </tutorials>
22 <methods>
23 <method name="get_apply_axis" qualifiers="const">
24 <return type="int" enum="Vector3.Axis" />
25 <param index="0" name="index" type="int" />
26 <description>
27 Returns the axis of the remapping destination transform.
28 </description>
29 </method>
30 <method name="get_apply_range_max" qualifiers="const">
31 <return type="float" />
32 <param index="0" name="index" type="int" />
33 <description>
34 Returns the maximum value of the remapping destination range.
35 </description>
36 </method>
37 <method name="get_apply_range_min" qualifiers="const">
38 <return type="float" />
39 <param index="0" name="index" type="int" />
40 <description>
41 Returns the minimum value of the remapping destination range.
42 </description>
43 </method>
44 <method name="get_apply_transform_mode" qualifiers="const">
45 <return type="int" enum="ConvertTransformModifier3D.TransformMode" />
46 <param index="0" name="index" type="int" />
47 <description>
48 Returns the operation of the remapping destination transform.
49 </description>
50 </method>
51 <method name="get_reference_axis" qualifiers="const">
52 <return type="int" enum="Vector3.Axis" />
53 <param index="0" name="index" type="int" />
54 <description>
55 Returns the axis of the remapping source transform.
56 </description>
57 </method>
58 <method name="get_reference_range_max" qualifiers="const">
59 <return type="float" />
60 <param index="0" name="index" type="int" />
61 <description>
62 Returns the maximum value of the remapping source range.
63 </description>
64 </method>
65 <method name="get_reference_range_min" qualifiers="const">
66 <return type="float" />
67 <param index="0" name="index" type="int" />
68 <description>
69 Returns the minimum value of the remapping source range.
70 </description>
71 </method>
72 <method name="get_reference_transform_mode" qualifiers="const">
73 <return type="int" enum="ConvertTransformModifier3D.TransformMode" />
74 <param index="0" name="index" type="int" />
75 <description>
76 Returns the operation of the remapping source transform.
77 </description>
78 </method>
79 <method name="is_additive" qualifiers="const">
80 <return type="bool" />
81 <param index="0" name="index" type="int" />
82 <description>
83 Returns [code]true[/code] if the additive option is enabled in the setting at [param index].
84 </description>
85 </method>
86 <method name="is_relative" qualifiers="const">
87 <return type="bool" />
88 <param index="0" name="index" type="int" />
89 <description>
90 Returns [code]true[/code] if the relative option is enabled in the setting at [param index].
91 </description>
92 </method>
93 <method name="set_additive">
94 <return type="void" />
95 <param index="0" name="index" type="int" />
96 <param index="1" name="enabled" type="bool" />
97 <description>
98 Sets additive option in the setting at [param index] to [param enabled]. This mainly affects the process of applying transform to the [method BoneConstraint3D.set_apply_bone].
99 If sets [param enabled] to [code]true[/code], the processed transform is added to the pose of the current apply bone.
100 If sets [param enabled] to [code]false[/code], the pose of the current apply bone is replaced with the processed transform. However, if set [method set_relative] to [code]true[/code], the transform is relative to rest.
101 </description>
102 </method>
103 <method name="set_apply_axis">
104 <return type="void" />
105 <param index="0" name="index" type="int" />
106 <param index="1" name="axis" type="int" enum="Vector3.Axis" />
107 <description>
108 Sets the axis of the remapping destination transform.
109 </description>
110 </method>
111 <method name="set_apply_range_max">
112 <return type="void" />
113 <param index="0" name="index" type="int" />
114 <param index="1" name="range_max" type="float" />
115 <description>
116 Sets the maximum value of the remapping destination range.
117 </description>
118 </method>
119 <method name="set_apply_range_min">
120 <return type="void" />
121 <param index="0" name="index" type="int" />
122 <param index="1" name="range_min" type="float" />
123 <description>
124 Sets the minimum value of the remapping destination range.
125 </description>
126 </method>
127 <method name="set_apply_transform_mode">
128 <return type="void" />
129 <param index="0" name="index" type="int" />
130 <param index="1" name="transform_mode" type="int" enum="ConvertTransformModifier3D.TransformMode" />
131 <description>
132 Sets the operation of the remapping destination transform.
133 </description>
134 </method>
135 <method name="set_reference_axis">
136 <return type="void" />
137 <param index="0" name="index" type="int" />
138 <param index="1" name="axis" type="int" enum="Vector3.Axis" />
139 <description>
140 Sets the axis of the remapping source transform.
141 </description>
142 </method>
143 <method name="set_reference_range_max">
144 <return type="void" />
145 <param index="0" name="index" type="int" />
146 <param index="1" name="range_max" type="float" />
147 <description>
148 Sets the maximum value of the remapping source range.
149 </description>
150 </method>
151 <method name="set_reference_range_min">
152 <return type="void" />
153 <param index="0" name="index" type="int" />
154 <param index="1" name="range_min" type="float" />
155 <description>
156 Sets the minimum value of the remapping source range.
157 </description>
158 </method>
159 <method name="set_reference_transform_mode">
160 <return type="void" />
161 <param index="0" name="index" type="int" />
162 <param index="1" name="transform_mode" type="int" enum="ConvertTransformModifier3D.TransformMode" />
163 <description>
164 Sets the operation of the remapping source transform.
165 </description>
166 </method>
167 <method name="set_relative">
168 <return type="void" />
169 <param index="0" name="index" type="int" />
170 <param index="1" name="enabled" type="bool" />
171 <description>
172 Sets relative option in the setting at [param index] to [param enabled].
173 If sets [param enabled] to [code]true[/code], the extracted and applying transform is relative to the rest.
174 If sets [param enabled] to [code]false[/code], the extracted transform is absolute.
175 </description>
176 </method>
177 </methods>
178 <members>
179 <member name="setting_count" type="int" setter="set_setting_count" getter="get_setting_count" default="0">
180 The number of settings in the modifier.
181 </member>
182 </members>
183 <constants>
184 <constant name="TRANSFORM_MODE_POSITION" value="0" enum="TransformMode">
185 Convert with position. Transfer the difference.
186 </constant>
187 <constant name="TRANSFORM_MODE_ROTATION" value="1" enum="TransformMode">
188 Convert with rotation. The angle is the roll for the specified axis.
189 </constant>
190 <constant name="TRANSFORM_MODE_SCALE" value="2" enum="TransformMode">
191 Convert with scale. Transfers the ratio, not the difference.
192 </constant>
193 </constants>
194 </class>