Blender V2.61 - r43446
|
Public Member Functions | |
btSingleRayCallback (const btVector3 &rayFromWorld, const btVector3 &rayToWorld, const btCollisionWorld *world, btCollisionWorld::RayResultCallback &resultCallback) | |
virtual bool | process (const btBroadphaseProxy *proxy) |
Public Attributes | |
btVector3 | m_rayFromWorld |
btVector3 | m_rayToWorld |
btTransform | m_rayFromTrans |
btTransform | m_rayToTrans |
btVector3 | m_hitNormal |
const btCollisionWorld * | m_world |
btCollisionWorld::RayResultCallback & | m_resultCallback |
Definition at line 787 of file btCollisionWorld.cpp.
btSingleRayCallback::btSingleRayCallback | ( | const btVector3 & | rayFromWorld, |
const btVector3 & | rayToWorld, | ||
const btCollisionWorld * | world, | ||
btCollisionWorld::RayResultCallback & | resultCallback | ||
) | [inline] |
what about division by zero? --> just set rayDirection[i] to INF/BT_LARGE_FLOAT
Definition at line 799 of file btCollisionWorld.cpp.
References BT_LARGE_FLOAT, btBroadphaseRayCallback::m_lambda_max, btBroadphaseRayCallback::m_rayDirectionInverse, m_rayFromTrans, m_rayFromWorld, m_rayToTrans, m_rayToWorld, btBroadphaseRayCallback::m_signs, btTransform::setIdentity(), and btTransform::setOrigin().
virtual bool btSingleRayCallback::process | ( | const btBroadphaseProxy * | proxy | ) | [inline, virtual] |
terminate further ray tests, once the closestHitFraction reached zero
Implements btBroadphaseAabbCallback.
Definition at line 827 of file btCollisionWorld.cpp.
References btCollisionWorld::RayResultCallback::m_closestHitFraction, m_rayFromTrans, m_rayToTrans, m_resultCallback, m_world, btCollisionWorld::RayResultCallback::needsCollision(), and btCollisionWorld::rayTestSingle().
Referenced by btCollisionWorld::rayTest().
btVector3 btSingleRayCallback::m_hitNormal |
Definition at line 794 of file btCollisionWorld.cpp.
Definition at line 792 of file btCollisionWorld.cpp.
Referenced by btSingleRayCallback(), and process().
btVector3 btSingleRayCallback::m_rayFromWorld |
Definition at line 790 of file btCollisionWorld.cpp.
Referenced by btSingleRayCallback().
Definition at line 793 of file btCollisionWorld.cpp.
Referenced by btSingleRayCallback(), and process().
btVector3 btSingleRayCallback::m_rayToWorld |
Definition at line 791 of file btCollisionWorld.cpp.
Referenced by btSingleRayCallback().
Definition at line 797 of file btCollisionWorld.cpp.
Referenced by process().
Definition at line 796 of file btCollisionWorld.cpp.
Referenced by process().