which lines dose the engine modify the player's position?
3 posters
which lines dose the engine modify the player's position?
HI!
in the tutorial09 which lines dose the engine modify the player's position? thx!
in the tutorial09 which lines dose the engine modify the player's position? thx!
mkevin- Posts : 3
Join date : 2008-10-18
Re: which lines dose the engine modify the player's position?
- 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] ) );
Re: which lines dose the engine modify the player's position?
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?
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
Re: which lines dose the engine modify the player's position?
sio2EnableState(&_SIO2object->flags, SIO2_OBJECT_GHOST);
Use the commensurate DisableState function to make your object visible again.
Best,
-joshua
Use the commensurate DisableState function to make your object visible again.
Best,
-joshua
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Similar topics
» Emitter position
» Resetting object position
» Randomly change one's position or what?
» how to change the position of an object
» sio2UnProject? Point on a plane from touch position
» Resetting object position
» Randomly change one's position or what?
» how to change the position of an object
» sio2UnProject? Point on a plane from touch position
Permissions in this forum:
You cannot reply to topics in this forum