kintaro
02-06-2006 18:26:00
Hi, I am trying to move an OgreNewt body with setvelocity().
In this case, a key is pressed, like 'w' and inside the framelistener, my program calls setVelocity(Vector(5,0,0)) for example, but nothing happens.
Other command like setPositionOrientation() works very well, but I need to use setVelocity command, so how can I solve this problem?
setVelocity in the framelistener worked when in create scene function I had putted setStandardForceCallBack(), why this happen? I don't want to use gravity in my program.
Thanks for help
In this case, a key is pressed, like 'w' and inside the framelistener, my program calls setVelocity(Vector(5,0,0)) for example, but nothing happens.
Other command like setPositionOrientation() works very well, but I need to use setVelocity command, so how can I solve this problem?
setVelocity in the framelistener worked when in create scene function I had putted setStandardForceCallBack(), why this happen? I don't want to use gravity in my program.
Thanks for help