Look at this video.
http://www.youtube.com/watch?v=svdpP1Z9 ... e=youtu.be
Basicaly every spinning object is linked to a rigidbody and a ghostobject and when i try to move the ghostobject to the rigidbody position the rigidbody goes spinning around out of control.
I looked at all my code and i boiled this down to these 3 lines of codes when i disable them the problem goes away but when they are enable i get this issue.
Also this issue does not apear when using single threaded bullet.
Code: Select all
btTransform newtransform = ghostObject->getWorldTransform();
newtransform.setOrigin(myRigidBody->getCenterOfMassPosition());
ghostObject->setWorldTransform(newtransform);