Bullet Collision Detection & Physics Library
Public Member Functions | Public Attributes | List of all members
btSingleSweepCallback Struct Reference
Inheritance diagram for btSingleSweepCallback:
Inheritance graph
Collaboration diagram for btSingleSweepCallback:
Collaboration graph

Public Member Functions

 btSingleSweepCallback (const btConvexShape *castShape, const btTransform &convexFromTrans, const btTransform &convexToTrans, const btCollisionWorld *world, btCollisionWorld::ConvexResultCallback &resultCallback, btScalar allowedPenetration)
virtual bool process (const btBroadphaseProxy *proxy)
- Public Member Functions inherited from btBroadphaseRayCallback
virtual ~btBroadphaseRayCallback ()
- Public Member Functions inherited from btBroadphaseAabbCallback
virtual ~btBroadphaseAabbCallback ()

Public Attributes

btTransform m_convexFromTrans
btTransform m_convexToTrans
btVector3 m_hitNormal
const btCollisionWorldm_world
btScalar m_allowedCcdPenetration
const btConvexShapem_castShape
- Public Attributes inherited from btBroadphaseRayCallback
btVector3 m_rayDirectionInverse
 added some cached data to accelerate ray-AABB tests More...
unsigned int m_signs [3]
btScalar m_lambda_max

Detailed Description

Definition at line 943 of file btCollisionWorld.cpp.

Constructor & Destructor Documentation

btSingleSweepCallback::btSingleSweepCallback ( const btConvexShape castShape,
const btTransform convexFromTrans,
const btTransform convexToTrans,
const btCollisionWorld world,
btCollisionWorld::ConvexResultCallback resultCallback,
btScalar  allowedPenetration 

what about division by zero? –> just set rayDirection[i] to INF/BT_LARGE_FLOAT

Definition at line 955 of file btCollisionWorld.cpp.

Member Function Documentation

virtual bool btSingleSweepCallback::process ( const btBroadphaseProxy proxy)

terminate further convex sweep tests, once the closestHitFraction reached zero

Implements btBroadphaseAabbCallback.

Definition at line 977 of file btCollisionWorld.cpp.

Member Data Documentation

btScalar btSingleSweepCallback::m_allowedCcdPenetration

Definition at line 951 of file btCollisionWorld.cpp.

const btConvexShape* btSingleSweepCallback::m_castShape

Definition at line 952 of file btCollisionWorld.cpp.

btTransform btSingleSweepCallback::m_convexFromTrans

Definition at line 946 of file btCollisionWorld.cpp.

btTransform btSingleSweepCallback::m_convexToTrans

Definition at line 947 of file btCollisionWorld.cpp.

btVector3 btSingleSweepCallback::m_hitNormal

Definition at line 948 of file btCollisionWorld.cpp.

btCollisionWorld::ConvexResultCallback& btSingleSweepCallback::m_resultCallback

Definition at line 950 of file btCollisionWorld.cpp.

const btCollisionWorld* btSingleSweepCallback::m_world

Definition at line 949 of file btCollisionWorld.cpp.

The documentation for this struct was generated from the following file: