I experienced that the call of applyCentralForce or applyForce or applyCentralImpulse or applyImpulse sometimes doesn't have an effect. This (lacking) behaviour doesn't seem to have a logical reason, so I'm asking here: Anyone ever experienced that too?
This is how I initialise Bullet and the world (it's pretty small):
Code: Select all
m_collisionConfiguration = new btDefaultCollisionConfiguration();
m_overlappingPairCache = new btAxisSweep3(btPoint3(-100, -50, -100), btPoint3(100, 100, 100), 10000);
m_dispatcher = new btCollisionDispatcher(m_collisionConfiguration);
m_solver = new btSequentialImpulseConstraintSolver();
m_solver->setSolverMode(btSequentialImpulseConstraintSolver::SOLVER_CACHE_FRIENDLY);
m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher, m_overlappingPairCache, m_solver, m_collisionConfiguration);
Code: Select all
m_body->activate(true);
m_body->applyForce(direction*50000.0f, hitPoint);
shogun