Code: Select all
//direciton - unit vector
//power - value between 60 and 80
obj->applyImpulse(direction*power, btVector3(0,0,0));
With 10% probability my small object move through big box.
My physic render code:
Code: Select all
btSoftRigidDynamicsWorld->stepSimulation( 1.0f / 60.0f, 0 )
Code: Select all
obj->setCcdMotionThreshold( 0.5f );
obj->setCcdSweptSphereRadius( 0.2*0.5f );
What code i must edit or paste for 100% chance to collision and bounce?