Hello, I'm making a third person character controller, and currently I'm working on the strafing:
Basically what I want to do is to be able to move forwards and backwards while playing an animation with root motion depending on the horizontal input. So:
1. the blend tree of the animation for
strafing depends on the
**horizontal**
2. the forwards and backwards depends on the **vertical**
What I tried is to do transform.AddForce(moveDirection * speed); being moveDirection a normalized vector which contains the direction I want to move. But it didn't seem to work. I've also tried transform.velocity and transform.translate. Any advice?
↧