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

Public Member Functions

 btSingleRayCallback (const btVector3 &rayFromWorld, const btVector3 &rayToWorld, const btCollisionWorld *world, btCollisionWorld::RayResultCallback &resultCallback)
virtual bool process (const btBroadphaseProxy *proxy)
- Public Member Functions inherited from btBroadphaseRayCallback
virtual ~btBroadphaseRayCallback ()
- Public Member Functions inherited from btBroadphaseAabbCallback
virtual ~btBroadphaseAabbCallback ()

Public Attributes

btVector3 m_rayFromWorld
btVector3 m_rayToWorld
btTransform m_rayFromTrans
btTransform m_rayToTrans
btVector3 m_hitNormal
const btCollisionWorldm_world
- 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

Additional Inherited Members

- Protected Member Functions inherited from btBroadphaseRayCallback
 btBroadphaseRayCallback ()

Detailed Description

Definition at line 974 of file btCollisionWorld.cpp.

Constructor & Destructor Documentation

btSingleRayCallback::btSingleRayCallback ( const btVector3 rayFromWorld,
const btVector3 rayToWorld,
const btCollisionWorld world,
btCollisionWorld::RayResultCallback resultCallback 

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

Definition at line 986 of file btCollisionWorld.cpp.

Member Function Documentation

virtual bool btSingleRayCallback::process ( const btBroadphaseProxy proxy)

terminate further ray tests, once the closestHitFraction reached zero

Implements btBroadphaseAabbCallback.

Definition at line 1014 of file btCollisionWorld.cpp.

Member Data Documentation

btVector3 btSingleRayCallback::m_hitNormal

Definition at line 981 of file btCollisionWorld.cpp.

btTransform btSingleRayCallback::m_rayFromTrans

Definition at line 979 of file btCollisionWorld.cpp.

btVector3 btSingleRayCallback::m_rayFromWorld

Definition at line 977 of file btCollisionWorld.cpp.

btTransform btSingleRayCallback::m_rayToTrans

Definition at line 980 of file btCollisionWorld.cpp.

btVector3 btSingleRayCallback::m_rayToWorld

Definition at line 978 of file btCollisionWorld.cpp.

btCollisionWorld::RayResultCallback& btSingleRayCallback::m_resultCallback

Definition at line 984 of file btCollisionWorld.cpp.

const btCollisionWorld* btSingleRayCallback::m_world

Definition at line 983 of file btCollisionWorld.cpp.

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