Game Development Community

Changing the direction a player faces when mounted

by Mike Stoddart · in Torque Game Engine · 09/13/2002 (2:36 pm) · 1 replies

I'm trying to change the way a player faces when they are mounted in a vehicle as a passenger. In my mount function I'm doing:

Quote:
%obj.setTransform(%mountPointTransform[1]);

where %mountPointTransform[1] is some transform like "0 0 0 0 0 1 0", for example. The player always seems to face forwards. Is there anything else I should be doing? I tried searching the C++ code for something that forced the player to face forward, but I haven't found anything yet. Has anyone else tried this?

Thanks

#1
09/16/2002 (7:05 am)
try putting the actual transform numbers in instead of the %mounttransform[] variable. try %obj.setTransform("0 0 0 0 0 1 1.57"); it should make the player face to the right.