|
@@ -1,8 +1,11 @@
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
<class name="SpineIkConstraintData" inherits="SpineConstraintData" version="3.4">
|
|
|
<brief_description>
|
|
|
+ Stores the setup pose for an [code]SpineIkConstraint[/code].
|
|
|
</brief_description>
|
|
|
<description>
|
|
|
+ Stores the setup pose for an [code]SpineIkConstraint[/code].
|
|
|
+ See [url]http://esotericsoftware.com/spine-ik-constraints[/url] in the Spine User Guide.
|
|
|
</description>
|
|
|
<tutorials>
|
|
|
</tutorials>
|
|
@@ -10,41 +13,51 @@
|
|
|
<method name="get_bend_direction">
|
|
|
<return type="int" />
|
|
|
<description>
|
|
|
+ For two bone IK, controls the bend direction of the IK bones, either 1 or -1.
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="get_bones">
|
|
|
<return type="Array" />
|
|
|
<description>
|
|
|
+ The bones that are constrained by this IK constraint.
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="get_compress">
|
|
|
<return type="bool" />
|
|
|
<description>
|
|
|
+ For one bone IK, when true and the target is too close, the bone is scaled to reach it.
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="get_mix">
|
|
|
<return type="float" />
|
|
|
<description>
|
|
|
+ A percentage (0-1) that controls the mix between the constrained and unconstrained rotation.
|
|
|
+ For two bone IK: if the parent bone has local nonuniform scale, the child bone's local Y translation is set to 0.
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="get_softness">
|
|
|
<return type="float" />
|
|
|
<description>
|
|
|
+ For two bone IK, the target bone's distance from the maximum reach of the bones where rotation begins to slow. The bones will not straighten completely until the target is this far out of range.
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="get_stretch">
|
|
|
<return type="bool" />
|
|
|
<description>
|
|
|
+ When true and the target is out of range, the parent bone is scaled to reach it.
|
|
|
+ For two bone IK: 1) the child bone's local Y translation is set to 0, 2) stretch is not applied if softness is > 0, and 3) if the parent bone has local nonuniform scale, stretch is not applied.
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="get_target">
|
|
|
<return type="SpineBoneData" />
|
|
|
<description>
|
|
|
+ The bone that is the IK target.
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="get_uniform">
|
|
|
<return type="bool" />
|
|
|
<description>
|
|
|
+ When true and compress or stretch is used, the bone is scaled on both the X and Y axes.
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="set_bend_direction">
|