Quantcast
Channel: Answers by "Mortoc"
Viewing all articles
Browse latest Browse all 73

Answer by Mortoc

$
0
0
Instead of myTransform.Translate (Vector3.up * lightningSpeed * Time.deltaTime); try: myTransform.Translate (transform.forward * lightningSpeed * Time.deltaTime); This uses the forward vector on the gameObject's transform instead of the world's up vector.

Viewing all articles
Browse latest Browse all 73

Trending Articles



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