Game Development Community

How can I get player location and orientation ?

by Ali Khan · in Torque Game Engine · 08/21/2006 (3:21 am) · 2 replies

Hi All,

I was just trying to get the player location and direciton on runtime so that I can place an object in fornt
of the player during game play.

I need to get the player position in the script. If anyone knows the answer please let me know.

Thanks.

#1
08/21/2006 (3:38 am)
It took me just under a minute to find the answer by searching for rotation and position:

getTransform().
#2
08/21/2006 (3:55 am)
Interesting link. I will be updating the link, as I'm doing the basics in learning about Vectors/Matrices.