103 btVector3 pointOnBWorld;
114 input.m_maximumDistanceSquared = min0->getMargin() + min1->getMargin() +
m_manifoldPtr->getContactBreakingThreshold();
115 input.m_maximumDistanceSquared *= input.m_maximumDistanceSquared;
124 btVector3 sepNormalWorldSpace;
143 btScalar squareMot0 = (col0->getInterpolationWorldTransform().getOrigin() - col0->getWorldTransform().getOrigin()).
length2();
144 btScalar squareMot1 = (col1->getInterpolationWorldTransform().getOrigin() - col1->getWorldTransform().getOrigin()).
length2();
147 squareMot1 < col1->getCcdSquareMotionThreshold())
148 return resultFraction;
167 if (ccd1.
calcTimeOfImpact(col0->getWorldTransform(), col0->getInterpolationWorldTransform(),
168 col1->getWorldTransform(), col1->getInterpolationWorldTransform(), result))
172 if (col0->getHitFraction() > result.m_fraction)
173 col0->setHitFraction(result.m_fraction);
175 if (col1->getHitFraction() > result.m_fraction)
176 col1->setHitFraction(result.m_fraction);
178 if (resultFraction > result.m_fraction)
179 resultFraction = result.m_fraction;
194 if (ccd1.
calcTimeOfImpact(col0->getWorldTransform(), col0->getInterpolationWorldTransform(),
195 col1->getWorldTransform(), col1->getInterpolationWorldTransform(), result))
199 if (col0->getHitFraction() > result.m_fraction)
200 col0->setHitFraction(result.m_fraction);
202 if (col1->getHitFraction() > result.m_fraction)
203 col1->setHitFraction(result.m_fraction);
205 if (resultFraction > result.m_fraction)
206 resultFraction = result.m_fraction;
210 return resultFraction;
btConvex2dConvex2dAlgorithm(btPersistentManifold *mf, const btCollisionAlgorithmConstructionInfo &ci, const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap, btSimplexSolverInterface *simplexSolver, btConvexPenetrationDepthSolver *pdSolver, int numPerturbationIterations, int minimumPointsPerturbationThreshold)
virtual bool calcTimeOfImpact(const btTransform &fromA, const btTransform &toA, const btTransform &fromB, const btTransform &toB, CastResult &result)
cast a convex against another convex object