0.2.0-dev Download ZIP
46 lines ·2.0 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="IKModifier3D" inherits="SkeletonModifier3D" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | A node for inverse kinematics which may modify more than one bone. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | Base class of [SkeletonModifier3D]s that has some joint lists and applies inverse kinematics. This class has some structs, enums, and helper methods which are useful to solve inverse kinematics. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | <link title="Inverse Kinematics Returns to Godot 4.6 - IKModifier3D">https://godotengine.org/article/inverse-kinematics-returns-to-godot-4-6/#ikmodifier3d-and-7-child-classes</link> |
| 11 | </tutorials> |
| 12 | <methods> |
| 13 | <method name="clear_settings"> |
| 14 | <return type="void" /> |
| 15 | <description> |
| 16 | Clears all settings. |
| 17 | </description> |
| 18 | </method> |
| 19 | <method name="get_setting_count" qualifiers="const"> |
| 20 | <return type="int" /> |
| 21 | <description> |
| 22 | Returns the number of settings. |
| 23 | </description> |
| 24 | </method> |
| 25 | <method name="reset"> |
| 26 | <return type="void" /> |
| 27 | <description> |
| 28 | Resets a state with respect to the current bone pose. |
| 29 | </description> |
| 30 | </method> |
| 31 | <method name="set_setting_count"> |
| 32 | <return type="void" /> |
| 33 | <param index="0" name="count" type="int" /> |
| 34 | <description> |
| 35 | Sets the number of settings. |
| 36 | </description> |
| 37 | </method> |
| 38 | </methods> |
| 39 | <members> |
| 40 | <member name="mutable_bone_axes" type="bool" setter="set_mutable_bone_axes" getter="are_bone_axes_mutable" default="true"> |
| 41 | If [code]true[/code], the solver retrieves the bone axis from the bone pose every frame. |
| 42 | If [code]false[/code], the solver retrieves the bone axis from the bone rest and caches it, which increases performance slightly, but position changes in the bone pose made before processing this [IKModifier3D] are ignored. |
| 43 | [b]Note:[/b] The rendered gizmo's forward vector (a line between parent and child joints) will only respect the bone pose when this modifier is active. |
| 44 | </member> |
| 45 | </members> |
| 46 | </class> |