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.

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

3 posters

Go down

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

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

Back to top Go down

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

Post  sio2interactive 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] ) );

sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

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

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

Back to top Go down

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

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

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

Back to top Go down

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

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