Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

transform.LookAt is not looking, and not displaying errors?

$
0
0
Hi all. I am using this code to make on of my AI look at a random waypoint. ---------- var waypoint : Transform[]; function update() { transform.LookAt(waypoint[Random.Range(0, waypoint.Length)]); } ---------- However, it is not working. When I apply it to a cube, the cube just sits there without turning, and it doesn't give me any errors. I am not sure what could be causing this. Any help would be greatly appreciated. Thanks in advance!

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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