About Store Forum Documentation Contact
Donations:
243$/mo



Post Reply 
6DOF Camera Question
Author Message
runewake2 Offline
Member

Post: #1
6DOF Camera Question
I'm playing around with a 6DOF game and have had a problem with my camera rotation:

The camera rotation from the default project does not allow you to look more than 90 degrees up/down. How do I disable this? Players should be able to spin entirely around if they need too. Also, I need to remove any Gimbal Locking that may occur. Not sure if this naturally happens in EE or not.

My rotation code:
PHP Code:
Flt max =DegToRad(900)*Time.d(),
             
dx  =Ms.d().x*1.5,
             
dy  =Ms.d().y*1.5;
         
angle.x-=Mid(dx,-max,max);
         
angle.y+=Mid(dy,-max,max); 

Thanks, Runewake2
07-27-2011 07:49 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: 6DOF Camera Question
you shouldn't use Player class but your custom one.
07-27-2011 01:17 PM
Find all posts by this user Quote this message in a reply
Post Reply