void DynamicsWorld::solveConstraints(btContactSolverInfo& solverInfo) { // todo: after fracture we should run the solver again for better realism // for example // save all velocities and if one or more objects fracture: // 1) revert all velocties // 2) apply impulses for the fracture bodies at the contact locations // 3) and run the constaint solver again btDiscreteDynamicsWorld::solveConstraints(solverInfo); fractureCallback(); }
void World::solveConstraints(btContactSolverInfo& solverInfo) { btDiscreteDynamicsWorld::solveConstraints(solverInfo); fractureCallback(); }