some more improvements to support basic CCD motion clamping

This commit is contained in:
erwin.coumans
2008-09-11 23:50:50 +00:00
parent 8ffbb21d48
commit fae48b5c25
5 changed files with 27 additions and 16 deletions

View File

@@ -556,7 +556,7 @@ int maxNumOutstandingTasks = 4;
// Only do CCD if motion in one timestep (1.f/60.f) exceeds CUBE_HALF_EXTENTS
body->setCcdSquareMotionThreshold( CUBE_HALF_EXTENTS );
body->setCcdMotionThreshold( CUBE_HALF_EXTENTS );
//Experimental: better estimation of CCD Time of Impact:
body->setCcdSweptSphereRadius( 0.2*CUBE_HALF_EXTENTS );