added basic CCD calculations for Compounds and non-convex (convex-versus-concave).

This commit is contained in:
ejcoumans
2006-08-11 04:10:37 +00:00
parent 369fabd300
commit d931aae32f
6 changed files with 205 additions and 39 deletions

View File

@@ -881,6 +881,11 @@ bool CcdPhysicsEnvironment::proceedDeltaTimeOneStep(float timeStep)
if (!body->IsStatic())
{
if (body->m_hitFraction < 1.f)
{
//set velocity to zero... until we have proper CCD integrated
body->setLinearVelocity(body->getLinearVelocity()*0.5f);
}
body->predictIntegratedTransform(timeStep* toi, predictedTrans);
body->proceedToTransform( predictedTrans);
}

View File

@@ -455,10 +455,10 @@ void SimulationIsland::UpdateAabbs(IDebugDraw* debugDrawer,BroadphaseInterface*
if (reportMe)
{
reportMe = false;
//printf("Overflow in AABB, object removed from simulation \n");
//printf("If you can reproduce this, please email bugs@continuousphysics.com\n");
//printf("Please include above information, your Platform, version of OS.\n");
//printf("Thanks.\n");
printf("Overflow in AABB, object removed from simulation \n");
printf("If you can reproduce this, please email bugs@continuousphysics.com\n");
printf("Please include above information, your Platform, version of OS.\n");
printf("Thanks.\n");
}
}