Blender V2.61 - r43446
|
GjkConvexCast performs a raycast on a convex object using support mapping. More...
#include <btGjkConvexCast.h>
Public Member Functions | |
btGjkConvexCast (const btConvexShape *convexA, const btConvexShape *convexB, btSimplexSolverInterface *simplexSolver) | |
virtual bool | calcTimeOfImpact (const btTransform &fromA, const btTransform &toA, const btTransform &fromB, const btTransform &toB, CastResult &result) |
cast a convex against another convex object |
GjkConvexCast performs a raycast on a convex object using support mapping.
Definition at line 30 of file btGjkConvexCast.h.
btGjkConvexCast::btGjkConvexCast | ( | const btConvexShape * | convexA, |
const btConvexShape * | convexB, | ||
btSimplexSolverInterface * | simplexSolver | ||
) |
Definition at line 30 of file btGjkConvexCast.cpp.
bool btGjkConvexCast::calcTimeOfImpact | ( | const btTransform & | fromA, |
const btTransform & | toA, | ||
const btTransform & | fromB, | ||
const btTransform & | toB, | ||
CastResult & | result | ||
) | [virtual] |
cast a convex against another convex object
compute linear velocity for this interval, to interpolate
Implements btConvexCast.
Definition at line 37 of file btGjkConvexCast.cpp.
References btConvexCast::CastResult::DebugDraw(), btGjkPairDetector::getClosestPoints(), btTransform::getOrigin(), btConvexCast::CastResult::m_allowedPenetration, btPointCollector::m_distance, btConvexCast::CastResult::m_fraction, btPointCollector::m_hasResult, btConvexCast::CastResult::m_hitPoint, btConvexCast::CastResult::m_normal, btPointCollector::m_normalOnBInWorld, btPointCollector::m_pointInWorld, btDiscreteCollisionDetectorInterface::ClosestPointInput::m_transformA, btDiscreteCollisionDetectorInterface::ClosestPointInput::m_transformB, MAX_ITERATIONS, and btTransform::setIdentity().
Referenced by btConvexConvexAlgorithm::calculateTimeOfImpact(), and btConvex2dConvex2dAlgorithm::calculateTimeOfImpact().