Problems using setVelocity in a framelistener

kintaro

31-05-2006 22:08:04

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?

Thanks for help

kintaro

01-06-2006 20:28:50

OK, 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

rastaman

02-06-2006 16:01:41

You are not in the right Forum this is OgreDotNet :).
Try in OgreNewt forum http://www.ogre3d.org/phpBB2addons/viewforum.php?f=4