- 수정됨
Ik don't work correctly.
Hello, i use libgdx api and always only first bone from ik array is moved when i i move target bone.
this is my ik section from skeleton json:
"ik":[
{
"mix":0.27,
"name":"bone_ik2",
"target":"armTarget",
"bones":["r_arm"]
},
{
"mix":0.67,
"name":"bone_ik6",
"target":"muzzle",
"bones":["l_arm"]
},
{
"name":"bone_ik1",
"target":"armTarget",
"bones":["r_hand"]
},
],
any idea?
Likely it's the order constraints are applied, see:
Constraints: Order
So if all constraints have '0' order only one should work?
Correct
constraints should not have the same order as other constraints, else only one will be applied. This is not normally an issue, as Spine will never export constraints with the same order ordinal. If you are generating JSON data or using the runtime API, you should ensure your constraints don't have the same order. They should have orders starting at 0 and incremented by 1 for each constraint after the first.
Note they need an order that makes sense. If applying a constraint resets the bone transforms that constraints applied before it have set, then it will appear that those other constraints don't do anything. They are applied, but a constraint applied later is overwriting their changes.
Yes, its make sense, and now work nice, so really thanks you