which lines dose the engine modify the player's position?

View previous topic View next topic Go down

which lines dose the engine modify the player's position?

Post  mkevin on Wed Dec 03, 2008 8:03 am

HI!
in the tutorial09 which lines dose the engine modify the player's position? thx!

mkevin

Posts : 3
Join date : 2008-10-18

View user profile

Back to top Go down

Re: which lines dose the engine modify the player's position?

Post  sio2interactive on Wed Dec 03, 2008 5:02 pm

Code:


               // Set the linear velocity of our physic object with a push in
               // the right direction.
               object->_btRigidBody->setLinearVelocity( btVector3( ( MOV_DIR * sio2->_SIO2camera->dir->x ) * SPEED,
                                                      ( MOV_DIR * sio2->_SIO2camera->dir->y ) * SPEED,
                                                      object->_btRigidBody->getLinearVelocity()[2] ) );

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: which lines dose the engine modify the player's position?

Post  mkevin on Thu Dec 04, 2008 8:09 am

Yeah,Thx.

And I've got another question here ... can I hide an object/player(in tutorial09) when I want ? And how can I do this?

mkevin

Posts : 3
Join date : 2008-10-18

View user profile

Back to top Go down

Re: which lines dose the engine modify the player's position?

Post  meteors on Thu Dec 04, 2008 9:35 am

sio2EnableState(&_SIO2object->flags, SIO2_OBJECT_GHOST);

Use the commensurate DisableState function to make your object visible again.


Best,
-joshua
avatar
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

View user profile

Back to top Go down

Re: which lines dose the engine modify the player's position?

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