I have a Blend tree animation with two floats ( VelocityX, VelocityZ) that have idle, run , run right, run left , I use a pad to move it at world space

  • When VelocityX is -1 it run left, +1 it run right
  • When VelocityZ is -1 it run back, +1 it run foward

It is working fine but the problem comes when I rotate the character in his Y axis, If I rotate the character 90 degrees on the Y axis, This system 'breaks' since blend tree is calculating VelocityX and VelocityZ from world space and not local space, So character is doing 'run foward' animation to go top but hi should do 'run right' animation since from character prespective he is moving to the right

How I can implement that local rotation into my blend system?

Any help or guide will be apreciated



You must log in to answer this question.

Browse other questions tagged .