Add relative option to LookAt/AimModifier3D
This commit is contained in:
@ -24,6 +24,13 @@
|
||||
Returns the axis of the first rotation. It is enabled only if [method is_using_euler] is [code]true[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_relative" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="index" type="int" />
|
||||
<description>
|
||||
Returns [code]true[/code] if the relative option is enabled in the setting at [param index].
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_using_euler" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="index" type="int" />
|
||||
@ -54,6 +61,16 @@
|
||||
Sets the axis of the first rotation. It is enabled only if [method is_using_euler] is [code]true[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_relative">
|
||||
<return type="void" />
|
||||
<param index="0" name="index" type="int" />
|
||||
<param index="1" name="enabled" type="bool" />
|
||||
<description>
|
||||
Sets relative option in the setting at [param index] to [param enabled].
|
||||
If sets [param enabled] to [code]true[/code], the rotation is applied relative to the pose.
|
||||
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.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_use_euler">
|
||||
<return type="void" />
|
||||
<param index="0" name="index" type="int" />
|
||||
|
||||
@ -91,6 +91,9 @@
|
||||
<member name="primary_rotation_axis" type="int" setter="set_primary_rotation_axis" getter="get_primary_rotation_axis" enum="Vector3.Axis" default="1">
|
||||
The axis of the first rotation. This [SkeletonModifier3D] works by compositing the rotation by Euler angles to prevent to rotate the [member forward_axis].
|
||||
</member>
|
||||
<member name="relative" type="bool" setter="set_relative" getter="is_relative" default="true">
|
||||
The relative option. If [code]true[/code], the rotation is applied relative to the pose. If [code]false[/code], the rotation is applied relative to the rest. It means to replace the current pose with the [LookAtModifier3D]'s result.
|
||||
</member>
|
||||
<member name="secondary_damp_threshold" type="float" setter="set_secondary_damp_threshold" getter="get_secondary_damp_threshold">
|
||||
The threshold to start damping for [member secondary_limit_angle].
|
||||
</member>
|
||||
|
||||
Reference in New Issue
Block a user