Rotating the Camera Around the Y-Axis

View previous topic View next topic Go down

Rotating the Camera Around the Y-Axis

Post  uprise78 on Thu Sep 03, 2009 12:28 am

Is there any way to rotate the camera about the y-axes? I have tried _SIO2camera->_SIO2transform->rot->y then rebound the matrix with no luck. It also seems as though the Blender exporter doesn't change when the camera's Y rotation is modified. What I am trying to do is when the iPhone tilts left or right I want to rotate the view in the opposite direction so the horizon always stays level.

uprise78

Posts : 228
Join date : 2008-10-31

View user profile

Back to top Go down

Re: Rotating the Camera Around the Y-Axis

Post  sio2interactive on Thu Sep 03, 2009 2:51 am

Use sio2LookAt instead and specify your own up vector...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Rotating the Camera Around the Y-Axis

Post  uprise78 on Thu Sep 03, 2009 9:54 am

Works like a charm! Thanks!

uprise78

Posts : 228
Join date : 2008-10-31

View user profile

Back to top Go down

Re: Rotating the Camera Around the Y-Axis

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum