Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/doc/classes/AimModifier3D.xml
10277 views
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<class name="AimModifier3D" inherits="BoneConstraint3D" 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_using_euler" qualifiers="const">
28
<return type="bool" />
29
<param index="0" name="index" type="int" />
30
<description>
31
Returns [code]true[/code] if it provides rotation with using euler.
32
</description>
33
</method>
34
<method name="is_using_secondary_rotation" 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 by two axes. It is enabled only if [method is_using_euler] is [code]true[/code].
39
</description>
40
</method>
41
<method name="set_forward_axis">
42
<return type="void" />
43
<param index="0" name="index" type="int" />
44
<param index="1" name="axis" type="int" enum="SkeletonModifier3D.BoneAxis" />
45
<description>
46
Sets the forward axis of the bone.
47
</description>
48
</method>
49
<method name="set_primary_rotation_axis">
50
<return type="void" />
51
<param index="0" name="index" type="int" />
52
<param index="1" name="axis" type="int" enum="Vector3.Axis" />
53
<description>
54
Sets the axis of the first rotation. It is enabled only if [method is_using_euler] is [code]true[/code].
55
</description>
56
</method>
57
<method name="set_use_euler">
58
<return type="void" />
59
<param index="0" name="index" type="int" />
60
<param index="1" name="enabled" type="bool" />
61
<description>
62
If sets [param enabled] to [code]true[/code], it provides rotation with using euler.
63
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.
64
</description>
65
</method>
66
<method name="set_use_secondary_rotation">
67
<return type="void" />
68
<param index="0" name="index" type="int" />
69
<param index="1" name="enabled" type="bool" />
70
<description>
71
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].
72
</description>
73
</method>
74
</methods>
75
<members>
76
<member name="setting_count" type="int" setter="set_setting_count" getter="get_setting_count" default="0">
77
The number of settings in the modifier.
78
</member>
79
</members>
80
</class>
81
82