FullBodyBipedIK.solver.leftHandEffector.positionOffset
Changing the above variable shows a change in late update debugs however he effect is not visible on the character.
Here is the late update code in question. It is in a custom script added to character.
here are the debugs:
leftHandPosOffset2 = (0,0,0)
after making change to leftHandPosOffset2 = (0.1,0,0)
Things to note:
Changing the above variable shows a change in late update debugs however he effect is not visible on the character.
Here is the late update code in question. It is in a custom script added to character.
C#:
Debug.Log("before: " + characterIK.solver.leftHandEffector.positionWeight + " " + characterIK.solver.leftHandEffector.positionOffset + " " + leftHandPosOffset2);
characterIK.solver.leftHandEffector.positionWeight = 0f;
characterIK.solver.leftHandEffector.positionOffset += leftHandPosOffset2;
Debug.Log("after: " + characterIK.solver.leftHandEffector.positionWeight + " " + characterIK.solver.leftHandEffector.positionOffset + " " + leftHandPosOffset2);
here are the debugs:
leftHandPosOffset2 = (0,0,0)
before: 0 (0.0, 0.0, 0.0) (0.0, 0.0, 0.0)
after: 0 (0.0, 0.0, 0.0) (0.0, 0.0, 0.0)
after making change to leftHandPosOffset2 = (0.1,0,0)
before: 0 (0.0, 0.0, 0.0) (0.1, 0.0, 0.0)
after: 0 (0.1, 0.0, 0.0) (0.1, 0.0, 0.0)
Things to note:
- Works perfectly without UCC.
- For offset to work, positionweight must be 0;
Last edited: