Skip to content
0.2.0-dev Download ZIP
97 lines ·4.2 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="AimModifier3D" inherits="BoneConstraint3D" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 The [AimModifier3D] rotates a bone to look at a reference bone.
5 </brief_description>
6 <description>
7 This is a simple version of [LookAtModifier3D] that only allows bone to the reference without advanced options such as angle limitation or time-based interpolation.
8 The feature is simplified, but instead it is implemented with smooth tracking without euler, see [method set_use_euler].
9 </description>
10 <tutorials>
11 </tutorials>
12 <methods>
13 <method name="get_forward_axis" qualifiers="const">
14 <return type="int" enum="SkeletonModifier3D.BoneAxis" />
15 <param index="0" name="index" type="int" />
16 <description>
17 Returns the forward axis of the bone.
18 </description>
19 </method>
20 <method name="get_primary_rotation_axis" qualifiers="const">
21 <return type="int" enum="Vector3.Axis" />
22 <param index="0" name="index" type="int" />
23 <description>
24 Returns the axis of the first rotation. It is enabled only if [method is_using_euler] is [code]true[/code].
25 </description>
26 </method>
27 <method name="is_relative" qualifiers="const">
28 <return type="bool" />
29 <param index="0" name="index" type="int" />
30 <description>
31 Returns [code]true[/code] if the relative option is enabled in the setting at [param index].
32 </description>
33 </method>
34 <method name="is_using_euler" qualifiers="const">
35 <return type="bool" />
36 <param index="0" name="index" type="int" />
37 <description>
38 Returns [code]true[/code] if it provides rotation with using euler.
39 </description>
40 </method>
41 <method name="is_using_secondary_rotation" qualifiers="const">
42 <return type="bool" />
43 <param index="0" name="index" type="int" />
44 <description>
45 Returns [code]true[/code] if it provides rotation by two axes. It is enabled only if [method is_using_euler] is [code]true[/code].
46 </description>
47 </method>
48 <method name="set_forward_axis">
49 <return type="void" />
50 <param index="0" name="index" type="int" />
51 <param index="1" name="axis" type="int" enum="SkeletonModifier3D.BoneAxis" />
52 <description>
53 Sets the forward axis of the bone.
54 </description>
55 </method>
56 <method name="set_primary_rotation_axis">
57 <return type="void" />
58 <param index="0" name="index" type="int" />
59 <param index="1" name="axis" type="int" enum="Vector3.Axis" />
60 <description>
61 Sets the axis of the first rotation. It is enabled only if [method is_using_euler] is [code]true[/code].
62 </description>
63 </method>
64 <method name="set_relative">
65 <return type="void" />
66 <param index="0" name="index" type="int" />
67 <param index="1" name="enabled" type="bool" />
68 <description>
69 Sets relative option in the setting at [param index] to [param enabled].
70 If sets [param enabled] to [code]true[/code], the rotation is applied relative to the pose.
71 If sets [param enabled] to [code]false[/code], the rotation is applied relative to the rest. It means to replace the current pose with the [AimModifier3D]'s result.
72 </description>
73 </method>
74 <method name="set_use_euler">
75 <return type="void" />
76 <param index="0" name="index" type="int" />
77 <param index="1" name="enabled" type="bool" />
78 <description>
79 If sets [param enabled] to [code]true[/code], it provides rotation with using euler.
80 If sets [param enabled] to [code]false[/code], it provides rotation with using rotation by arc generated from the forward axis vector and the vector toward the reference.
81 </description>
82 </method>
83 <method name="set_use_secondary_rotation">
84 <return type="void" />
85 <param index="0" name="index" type="int" />
86 <param index="1" name="enabled" type="bool" />
87 <description>
88 If sets [param enabled] to [code]true[/code], it provides rotation by two axes. It is enabled only if [method is_using_euler] is [code]true[/code].
89 </description>
90 </method>
91 </methods>
92 <members>
93 <member name="setting_count" type="int" setter="set_setting_count" getter="get_setting_count" default="0">
94 The number of settings in the modifier.
95 </member>
96 </members>
97</class>