About Store Forum Documentation Contact



Post Reply 
Player position
Author Message
Harry Offline
Member

Post: #1
Player position
How can I change player position according to object position and rotation? I tried something like this:

Players[0].pos(car().actor.matrix().pos+Vec(0,0,2)) but when my car change his rotation player isn't next to door but inside the car:

http://img687.imageshack.us/gal.php?g=scrsh.jpg
03-17-2010 03:33 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Player position
Vec offset(1,2,3)
player.pos(offset*car.matrix)
03-17-2010 03:36 PM
Find all posts by this user Quote this message in a reply
Harry Offline
Member

Post: #3
RE: Player position
Thanks a lot smile
03-17-2010 03:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply