I have a problem when using Bullet, OpenSceneGraph and osgBullet. I have a couple of boxes which are falling down onto a gound. Then I created a Sphere which I can manually move around. The boxes behave as they should, but I can't get the sphere to work. If i set it up as the boxes, it falls down, which isn't what I want. I set the collision flag btCollisionObject::CF_KINEMATIC_OBJECT and want to set the position using
Code: Select all
...->getMotionState()->setWorldTransform(trans);
Code: Select all
Assertion failed: s != btScalar(0.0), file bullet-2.77\src\linearmath\btQuaternion.h, line 188
Can somebody help me or point out how to manually set a position of an object when using osgBullet?
Thanks
Bob