Godot Engine – Multi-platform 2D and 3D game engine
Fixed the docs for IK rests
Silc Lizard (Tokage) Renew83c477717b3e
diff --git a/doc/classes/IterateIK3D.xml b/doc/classes/IterateIK3D.xmlindex e4c19ee275f..aa7173373b0 100644--- a/doc/classes/IterateIK3D.xml+++ b/doc/classes/IterateIK3D.xml@@ -44,7 +44,8 @@Returns the joint limitation rotation offset at [param joint] in the bone chain's joint list.Rotation is done in the local space which is constructed by the bone direction (in general parent to child) as the +Y axis and [method get_joint_limitation_right_axis_vector] as the +X axis.If the +X and +Y axes are not orthogonal, the +X axis is implicitly modified to make it orthogonal.- Also, if the length of [method get_joint_limitation_right_axis_vector] is zero, the space is created by rotating the bone rest using the shortest arc that rotates the +Y axis of the bone rest to match the bone direction.+ Also, if the length of [method get_joint_limitation_right_axis_vector] is zero, the space is created by rotating the reference pose using the shortest arc that rotates the +Y axis of the reference pose to match the bone direction.+ In here, the reference pose is the bone pose immediately before processing IK.</description></method><method name="get_joint_rotation_axis" qualifiers="const">@@ -107,7 +108,8 @@Sets the joint limitation rotation offset at [param joint] in the bone chain's joint list.Rotation is done in the local space which is constructed by the bone direction (in general parent to child) as the +Y axis and [method get_joint_limitation_right_axis_vector] as the +X axis.If the +X and +Y axes are not orthogonal, the +X axis is implicitly modified to make it orthogonal.- Also, if the length of [method get_joint_limitation_right_axis_vector] is zero, the space is created by rotating the bone rest using the shortest arc that rotates the +Y axis of the bone rest to match the bone direction.+ Also, if the length of [method get_joint_limitation_right_axis_vector] is zero, the space is created by rotating the reference pose using the shortest arc that rotates the +Y axis of the reference pose to match the bone direction.+ In here, the reference pose is the bone pose immediately before processing IK.</description></method><method name="set_joint_rotation_axis">@@ -117,7 +119,8 @@<param index="2" name="axis" type="int" enum="SkeletonModifier3D.RotationAxis" /><description>Sets the rotation axis at [param joint] in the bone chain's joint list.- The axes are based on the [method Skeleton3D.get_bone_rest]'s space, if [param axis] is [constant SkeletonModifier3D.ROTATION_AXIS_CUSTOM], you can specify any axis.+ The axes are based on the reference pose's space, if [param axis] is [constant SkeletonModifier3D.ROTATION_AXIS_CUSTOM], you can specify any axis.+ In here, the reference pose is the bone pose immediately before processing IK.[b]Note:[/b] The rotation axis and the forward vector shouldn't be colinear to avoid unintended rotation since [ChainIK3D] does not factor in twisting forces.</description></method>diff --git a/doc/classes/LookAtModifier3D.xml b/doc/classes/LookAtModifier3D.xmlindex cedd90a1c0b..b28a5e833f7 100644--- a/doc/classes/LookAtModifier3D.xml+++ b/doc/classes/LookAtModifier3D.xml@@ -93,7 +93,7 @@</member><member name="relative" type="bool" setter="set_relative" getter="is_relative" default="false">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.- [b]Note:[/b] This option affects the base angle for [member use_angle_limitation] unlike [IterateIK3D]'s [JointLimitation3D]. Since the [LookAtModifier3D] relies strongly on Euler rotation, the axis that determines the limitation and the actual rotation are strongly tied together.+ [b]Note:[/b] This option affects the base angle for [member use_angle_limitation]. Since the [LookAtModifier3D] relies strongly on Euler rotation, the axis that determines the limitation and the actual rotation are strongly tied together.</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].diff --git a/doc/classes/SpringBoneSimulator3D.xml b/doc/classes/SpringBoneSimulator3D.xmlindex 2c7b3b07ded..def7426f957 100644--- a/doc/classes/SpringBoneSimulator3D.xml+++ b/doc/classes/SpringBoneSimulator3D.xml@@ -537,7 +537,8 @@<param index="2" name="axis" type="int" enum="SkeletonModifier3D.RotationAxis" /><description>Sets the rotation axis at [param joint] in the bone chain's joint list when [method is_config_individual] is [code]true[/code].- The axes are based on the [method Skeleton3D.get_bone_rest]'s space, if [param axis] is [constant SkeletonModifier3D.ROTATION_AXIS_CUSTOM], you can specify any axis.+ The axes are based on the reference pose's space, if [param axis] is [constant SkeletonModifier3D.ROTATION_AXIS_CUSTOM], you can specify any axis.+ In here, the reference pose is the bone pose immediately before the simulation.[b]Note:[/b] The rotation axis and the forward vector shouldn't be colinear to avoid unintended rotation since [SpringBoneSimulator3D] does not factor in twisting forces.</description></method>@@ -600,7 +601,8 @@<param index="1" name="axis" type="int" enum="SkeletonModifier3D.RotationAxis" /><description>Sets the rotation axis of the bone chain. If set to a specific axis, it acts like a hinge joint. The value is cached in each joint setting in the joint list.- The axes are based on the [method Skeleton3D.get_bone_rest]'s space, if [param axis] is [constant SkeletonModifier3D.ROTATION_AXIS_CUSTOM], you can specify any axis.+ The axes are based on the reference pose's space, if [param axis] is [constant SkeletonModifier3D.ROTATION_AXIS_CUSTOM], you can specify any axis.+ In here, the reference pose is the bone pose immediately before the simulation.[b]Note:[/b] The rotation axis vector and the forward vector shouldn't be colinear to avoid unintended rotation since [SpringBoneSimulator3D] does not factor in twisting forces.</description></method>