cane_student
03-09-2008 19:32:19
Hi im a games dev student creating a game in OGRE for my final project.
I have been loving it so far, I have been getting through it at a good pace due to all the help and tutorials that are available.
This is the first problem that has caused me to need to ask for help and i would appreciate any given.
I have a customForceAndTorque callback that is defined once, when setting up the physics for the player.
Problem is i set a constant velocity on a rigid body and after a while it stops moving, similarly if i have an IF statement within the callback it only gets fired once.
e.g.
if(mWalking)
me->setVelocity(vel);
If the boolean value is true initially it performs it for a limited time, if it is false initially then changes to true during run-time it does not change the behaviour as it should.
Leading me to believe there is a problem when updating mWorld.
any thoughts????
thanks
Cane
I have been loving it so far, I have been getting through it at a good pace due to all the help and tutorials that are available.
This is the first problem that has caused me to need to ask for help and i would appreciate any given.
I have a customForceAndTorque callback that is defined once, when setting up the physics for the player.
Problem is i set a constant velocity on a rigid body and after a while it stops moving, similarly if i have an IF statement within the callback it only gets fired once.
e.g.
if(mWalking)
me->setVelocity(vel);
If the boolean value is true initially it performs it for a limited time, if it is false initially then changes to true during run-time it does not change the behaviour as it should.
Leading me to believe there is a problem when updating mWorld.
any thoughts????
thanks
Cane