0.2.0-dev Download ZIP
87 lines ·4.7 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="SplineIK3D" inherits="ChainIK3D" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | A [SkeletonModifier3D] for aligning bones along a [Path3D]. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | A [SkeletonModifier3D] for aligning bones along a [Path3D]. The smoothness of the fitting depends on the [member Curve3D.bake_interval]. |
| 8 | If you want the [Path3D] to attach to a specific bone, it is recommended to place a [ModifierBoneTarget3D] before the [SplineIK3D] in the [SkeletonModifier3D] list (children of the [Skeleton3D]), and then place a [Path3D] as the [ModifierBoneTarget3D]'s child. |
| 9 | Bone twist is determined based on the [method Curve3D.get_point_tilt]. |
| 10 | If the root bone joint and the start point of the [Curve3D] are separated, it assumes that there is a linear line segment between them. This means that the vector pointing toward the start point of the [Curve3D] takes precedence over the shortest intersection point along the [Curve3D]. |
| 11 | If the end bone joint exceeds the path length, it is bent as close as possible to the end point of the [Curve3D]. |
| 12 | [b]Note:[/b] All the methods in this class take an [code]index[/code] parameter. This parameter specifies which setting list entry to return if the IK has multiple entries (e.g. [code]settings/<index>/root_bone_name[/code]). |
| 13 | </description> |
| 14 | <tutorials> |
| 15 | </tutorials> |
| 16 | <methods> |
| 17 | <method name="get_path_3d" qualifiers="const"> |
| 18 | <return type="NodePath" /> |
| 19 | <param index="0" name="index" type="int" /> |
| 20 | <description> |
| 21 | Returns the node path of the [Path3D] which is describing the path. |
| 22 | </description> |
| 23 | </method> |
| 24 | <method name="get_tilt_fade_in" qualifiers="const"> |
| 25 | <return type="int" /> |
| 26 | <param index="0" name="index" type="int" /> |
| 27 | <description> |
| 28 | Returns the tilt interpolation method used between the root bone and the start point of the [Curve3D] when they are apart. See also [method set_tilt_fade_in]. |
| 29 | </description> |
| 30 | </method> |
| 31 | <method name="get_tilt_fade_out" qualifiers="const"> |
| 32 | <return type="int" /> |
| 33 | <param index="0" name="index" type="int" /> |
| 34 | <description> |
| 35 | Returns the tilt interpolation method used between the end bone and the end point of the [Curve3D] when they are apart. See also [method set_tilt_fade_out]. |
| 36 | </description> |
| 37 | </method> |
| 38 | <method name="is_tilt_enabled" qualifiers="const"> |
| 39 | <return type="bool" /> |
| 40 | <param index="0" name="index" type="int" /> |
| 41 | <description> |
| 42 | Returns if the tilt property of the [Curve3D] affects the bone twist. |
| 43 | </description> |
| 44 | </method> |
| 45 | <method name="set_path_3d"> |
| 46 | <return type="void" /> |
| 47 | <param index="0" name="index" type="int" /> |
| 48 | <param index="1" name="path_3d" type="NodePath" /> |
| 49 | <description> |
| 50 | Sets the node path of the [Path3D] which is describing the path. |
| 51 | </description> |
| 52 | </method> |
| 53 | <method name="set_tilt_enabled"> |
| 54 | <return type="void" /> |
| 55 | <param index="0" name="index" type="int" /> |
| 56 | <param index="1" name="enabled" type="bool" /> |
| 57 | <description> |
| 58 | Sets if the tilt property of the [Curve3D] should affect the bone twist. |
| 59 | </description> |
| 60 | </method> |
| 61 | <method name="set_tilt_fade_in"> |
| 62 | <return type="void" /> |
| 63 | <param index="0" name="index" type="int" /> |
| 64 | <param index="1" name="size" type="int" /> |
| 65 | <description> |
| 66 | If [param size] is greater than [code]0[/code], the tilt is interpolated between [param size] start bones from the start point of the [Curve3D] when they are apart. |
| 67 | If [param size] is equal [code]0[/code], the tilts between the root bone head and the start point of the [Curve3D] are unified with a tilt of the start point of the [Curve3D]. |
| 68 | If [param size] is less than [code]0[/code], the tilts between the root bone and the start point of the [Curve3D] are [code]0.0[/code]. |
| 69 | </description> |
| 70 | </method> |
| 71 | <method name="set_tilt_fade_out"> |
| 72 | <return type="void" /> |
| 73 | <param index="0" name="index" type="int" /> |
| 74 | <param index="1" name="size" type="int" /> |
| 75 | <description> |
| 76 | If [param size] is greater than [code]0[/code], the tilt is interpolated between [param size] end bones from the end point of the [Curve3D] when they are apart. |
| 77 | If [param size] is equal [code]0[/code], the tilts between the end bone tail and the end point of the [Curve3D] are unified with a tilt of the end point of the [Curve3D]. |
| 78 | If [param size] is less than [code]0[/code], the tilts between the end bone and the end point of the [Curve3D] are [code]0.0[/code]. |
| 79 | </description> |
| 80 | </method> |
| 81 | </methods> |
| 82 | <members> |
| 83 | <member name="setting_count" type="int" setter="set_setting_count" getter="get_setting_count" default="0"> |
| 84 | The number of settings. |
| 85 | </member> |
| 86 | </members> |
| 87 | </class> |