Quantcast
Channel: Answers by "Graham-Dunnett"
Viewing all articles
Browse latest Browse all 959

Answer by Graham Dunnett

$
0
0
The vector you pass to `CharacterController.Move()` is the direction you want the character to move in. Just rotate the game object so it's forward vector is aligned with the direction you compute. The example on the [Move()][1] doc page shows a slightly more clean way to compute this vector. [1]: http://docs.unity3d.com/ScriptReference/CharacterController.Move.html

Viewing all articles
Browse latest Browse all 959

Trending Articles



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