- Home /
Question by
LanslowDuLac · Jul 18, 2018 at 08:31 PM ·
2d gameanimator2d animationblendtree
Get Pos X and Pos Y of current playing Blend Tree motion
Hi,
I'm using 2D Simple Directional Blend Tree for my Hero movement, I have 8 possible directions. So my Blend Tree is using Vertical input and Horizontal input to choose which motion of Blend Tree to play. Pos X and Pos Y have 3 possible values : -1, 0, +1. Here is a Screenshot of my Blend Tree :
I need to know Pos X and Pos Y values of motion that is currently playing. Is that possible? Is there a formula to compute it from parameters xInput and yInput?
Thank you for any answer :)
blendtreeunity.png
(46.6 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612171026im_/https://answers.unity.com/themes/thub/images/avi.jpg)