Author Topic: How do I find the direction that a bot/object is facing?  (Read 428 times)

I want to find the direction that a bot is facing so I can set it to change the direction as I please through a function I am making. I am trying to make a camera sweep side to side in a room but the only way I would be able to do it is to have it change the direction by a single coordinate or something until it reaches it's target and they do the same thing back. If you could give me an easier way to do this that would also be appreciated. Thanks!

Get a bot object snd call dump();

Then you'll see stuff like getForwardVector, getEyeVector, etc

For axis angles, use getWords(<object>.getTransform(), 3, 6);