About Store Forum Documentation Contact
Donations:
178$/mo



Post Reply 
reorienting player on world load
Author Message
ghreef Offline
Member

Post: #1
reorienting player on world load
I don't know where else to put this topic, so I'm putting it here - feel free to move it...

I was wondering if the tutorials cover changing the orientation of a player on loading a world. I have been looking for it but can't find it. If you can share where it is in the tuts that would be great. If it's not in there, does anyone have suggestions on how to do this?

My issue (use case):
When my character loads from one world to another, it keeps the orientation when it left the old world (this makes sense). But, the new world has a layout that doesn't match cleanly - in some cases the player ends up in the new world, looking right at a wall (not so ideal). So, my two options are, somehow reorient my entire world's heightmap to the correct direction. (not so easy) or reorient the player on loading the new world (this seems easier). Any guidance on this one?

Thanks in advance - as always.
08-06-2011 02:46 PM
Find all posts by this user Quote this message in a reply
Dandruff Offline
Member

Post: #2
RE: reorienting player on world load
Try Player[0].angle.set(Flt,Player[0].angle.y); at init of player
08-06-2011 09:44 PM
Find all posts by this user Quote this message in a reply
Post Reply