Quantcast
Channel: Answers by "Superrodan"
Viewing all articles
Browse latest Browse all 62

Answer by Superrodan

$
0
0
What you want to do is use "transform.forward" in your code instead of Vector3.forward. Vector3.forward is in world space and always goes in one direction based on world space. "transform.forward" goes forward in the gameObject's local space.

Viewing all articles
Browse latest Browse all 62

Trending Articles



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