Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
How do I find the direction that a bot/object is facing?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How do I find the direction that a bot/object is facing? (Read 428 times)
Gordo12699
August 26, 2013, 01:41:58 AM
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!
Ad Bot
Advertisement
Zeblote
August 26, 2013, 03:33:12 AM
Get a bot object snd call dump();
Then you'll see stuff like getForwardVector, getEyeVector, etc
Port
August 26, 2013, 07:37:15 AM
For axis angles, use
getWords(<object>.getTransform(), 3, 6);
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
How do I find the direction that a bot/object is facing?