Quantcast
Channel: Questions in topic: "addforce"
Viewing all articles
Browse latest Browse all 1264

Add extra movement to an animation

$
0
0
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?

Viewing all articles
Browse latest Browse all 1264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>