Game Development Community

Rotate Player?

by Alex (Stalker) Sakablukow · in Torque Game Engine · 05/05/2006 (5:09 am) · 3 replies

I need to rotate player (with different swimming animations) in the Z-Axis (for underwater swimming in any direchtion).
Have tryed to find some thing about this, but it seems to be complex cause z-axis is hardcoded by engine...


Any idea about this? How can i code/hack it simple enought? Any ressource that i havent find maybe?

#1
05/08/2006 (11:23 pm)
Wow... I'd be very interested in an answer to this as well. I've got a rather jumpy heroine in my project that I can't seem to get a decent backflip out of ...and I think this is why.
#2
05/08/2006 (11:46 pm)
Errr no, you shouldn't need to re-align your player to do jumping, a canned animation will work fine. There is this code that aligns the player to the terrain, and at the very least, it will show you how to add in the other rotation values to a player. I'd really avoid doing it unless you absolutely can't manage with simple underwater horizontal and z-movement.
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3148
#3
05/09/2006 (3:06 am)
Thx, have already seen this Ressource, i will try to modify it...