Blender
V3.3
|
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 More... | |
![]() | |
virtual | ~btConvexCast () |
GjkConvexCast performs a raycast on a convex object using support mapping.
Definition at line 28 of file btGjkConvexCast.h.
btGjkConvexCast::btGjkConvexCast | ( | const btConvexShape * | convexA, |
const btConvexShape * | convexB, | ||
btSimplexSolverInterface * | simplexSolver | ||
) |
Definition at line 28 of file btGjkConvexCast.cpp.
|
virtual |
cast a convex against another convex object
compute linear velocity for this interval, to interpolate
Implements btConvexCast.
Definition at line 35 of file btGjkConvexCast.cpp.
References btTransform, btVector3, Freestyle::c, btGjkPairDetector::getClosestPoints(), input, btPointCollector::m_distance, btPointCollector::m_hasResult, btPointCollector::m_normalOnBInWorld, btPointCollector::m_pointInWorld, MAX_ITERATIONS, r, result, and v.
Referenced by btConvex2dConvex2dAlgorithm::calculateTimeOfImpact(), and btConvexConvexAlgorithm::calculateTimeOfImpact().