I have a bullet project integrated with Irrlicht engine. I'm trying to rotate object with mouse movement like in third person view, but my rotated object always gets back to previous state.
my first method:
second:btVector3 bodyangle = Body->getAngularVelocity();
btVector3 rot(0,x*0.1,y*0.1);
bodyangle += rot;
Body->setAngularVelocity( rot );
//it even rotates but with rollbacks
irrlicht objects are reading from bullet's so they shouldn't be the problem...btTransform trans;
Body->getMotionState()->getWorldTransform(trans);
trans.setRotation (btQuaternion (btVector3(0.0, 1.0, 0.0), x*0.1));
Body->getMotionState()->setWorldTransform( trans );
//should be good but after like one frame it gets back to previous state
I can't get around this.
NO i don't wan't MyFPScameraSmtg.