FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

sio2TransformRotateZ camera slowly?

2 posters

Go down

sio2TransformRotateZ camera slowly? Empty sio2TransformRotateZ camera slowly?

Post  skaterazn Mon Aug 03, 2009 7:25 am

how can i rotate the camera slowly?

skaterazn

Posts : 12
Join date : 2009-07-03

Back to top Go down

sio2TransformRotateZ camera slowly? Empty Re: sio2TransformRotateZ camera slowly?

Post  sio2interactive 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...
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

sio2TransformRotateZ camera slowly? Empty Re: sio2TransformRotateZ camera slowly?

Post  skaterazn 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

Back to top Go down

sio2TransformRotateZ camera slowly? Empty Re: sio2TransformRotateZ camera slowly?

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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