Game Development Community

Player loop / rotation

by Herald Richeson · in Torque Game Engine · 03/28/2007 (7:55 am) · 1 replies

I don't know how to get a player to do a loop when flying. I've been trying to make a player fly and I used the Making a Player Fly forum post ( http://www.garagegames.com/mg/forums/result.thread.php?qt=32256 ) to get him to fly and then I used the Do the Twist resource ( http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6713 ) to add in pitch2 and yaw2. I then modified the flying so that I could look with the left thumb stick but control how I'm flying with my right thumbstick instead of flying where I'm looking. Now I can fly up and down and turn around in circles (though the camera doesn't follow; I'll look into that after this) but I don't know how to loop, I can fly straight up or straight down and that's it.

I don't have any idea as to what to do next. If quaternions are involved, if I only change playermove(), Is roll involved, what exactly is roll and how does it work, etc. If anyone could give me any help here I'd appreciate it.

#1
03/30/2007 (3:43 pm)
Should I try implementing this: http://www.gamedev.net/community/forums/topic.asp?topic_id=334484&whichpage=1? ?

I'm not even sure how I would, though. Does anyone have any advice on what to do?