Search Issue Tracker
Not Reproducible
Votes
0
Found in
2019.3.0a1
2019.3.0b1
2020.1.0a1
Issue ID
1180044
Regression
No
Cannot read non-solved IK position when using GetGoalPosition
How to reproduce:
1. Open the user's project
2. Press Play
Expected result: Ray is drawn where the foot would be if an animation was enabled
Actual result: Ray is drawn at the same spot where the foot is
Reproducible with - 2019.3.0b7, 2020.1.0a9
Could not test with - 2019.2.10f1 and earlier (Playable Graph errors)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Red spots appear when Blending Lighting Scenarios using Adaptive Probe Volumes
- [Windows] About Unity Window needs to be opened twice to adapt to resolution
- NullReferenceException and temporary graph corruption after entering playmode if output node connection was changed
- Sprite Renderer with Animation does not reflect Sprite changes in the Scene when switching Mask Interaction
- User is redirected to a non-existing online documentation link when clicking on "?" help button inside Inspector window while Animator Override Controller is selected
Resolution Note (2019.3.X):
I can't repro the bug locally as I don't have the tools (blender) to import the project.
The only place valid to call an IK method is from OnAnimatorIK/OnStateIK or from an animation job.
In OnAnimatorIK if all your states don't have foot IK enabled or all yours AnimationClipPlayable doesn't set ApplyFootIK or ApplyPlayableIK On you should be able to retrieve the goals.
You can also get them from an animation job ProcessAnimation method. Of course, this job needs to be connected as an output of a ClipPlayable to get the non-solved IK goal position.
You can also get them from an animation job ProcessAnimation method. Of course, this job needs to be connected as an output of a ClipPlayable to get the non-solved IK goal position.