added basic CCD calculations for Compounds and non-convex (convex-versus-concave).
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user