sio2TransformRotateZ camera slowly?

View previous topic View next topic Go down

sio2TransformRotateZ camera slowly?

Post  skaterazn on Mon Aug 03, 2009 7:25 am

how can i rotate the camera slowly?

skaterazn

Posts : 12
Join date : 2009-07-03

View user profile

Back to top Go down

Re: sio2TransformRotateZ camera slowly?

Post  sio2interactive on Mon Aug 03, 2009 7:46 am

Check in example tutorial04, and the way I do the camera rotation, the lower the factor the slower the camera will turn...

_________________
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: sio2TransformRotateZ camera slowly?

Post  skaterazn on Mon Aug 03, 2009 8:18 am

thanks, but it still doesn't solve my problem.

what i want is, when i tap the screen, the camera will move forward with:

sio2->_SIO2camera->_btRigidBody->setLinearVelocity( btVector3( 0.0f, 5.0f,0.0f ) );

and after that, the camera should rotate 90 degrees.

my first problem is, how do i rotate after the camera has reached the specific point?

and my second problem is, when i'm using: ROT_Z = ( ( 1.570796327 * SIO2_RAD_TO_DEG ) * 0.0015f );

the camera doesn't stop after 90 degrees.

sorry for my bad english Razz

skaterazn

Posts : 12
Join date : 2009-07-03

View user profile

Back to top Go down

Re: sio2TransformRotateZ camera slowly?

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