Blender V5.0
btSingleRayCallback Struct Reference

Inherits btBroadphaseRayCallback.

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
btCollisionWorld::RayResultCallbackm_resultCallback
Public Attributes inherited from btBroadphaseRayCallback
btVector3 m_rayDirectionInverse
 added some cached data to accelerate ray-AABB tests
unsigned int m_signs [3]
btScalar m_lambda_max

Additional Inherited Members

Protected Member Functions inherited from btBroadphaseRayCallback
 btBroadphaseRayCallback ()

Detailed Description

Definition at line 930 of file btCollisionWorld.cpp.

Constructor & Destructor Documentation

◆ btSingleRayCallback()

btSingleRayCallback::btSingleRayCallback ( const btVector3 & rayFromWorld,
const btVector3 & rayToWorld,
const btCollisionWorld * world,
btCollisionWorld::RayResultCallback & resultCallback )
inline

Member Function Documentation

◆ process()

virtual bool btSingleRayCallback::process ( const btBroadphaseProxy * proxy)
inlinevirtual

terminate further ray tests, once the closestHitFraction reached zero

Implements btBroadphaseAabbCallback.

Definition at line 966 of file btCollisionWorld.cpp.

References btBroadphaseProxy, btCollisionObject, btVector3, m_rayFromTrans, m_rayToTrans, m_resultCallback, and m_world.

Referenced by btCollisionWorld::rayTest().

Member Data Documentation

◆ m_hitNormal

btVector3 btSingleRayCallback::m_hitNormal

Definition at line 936 of file btCollisionWorld.cpp.

◆ m_rayFromTrans

btTransform btSingleRayCallback::m_rayFromTrans

Definition at line 934 of file btCollisionWorld.cpp.

Referenced by btSingleRayCallback(), and process().

◆ m_rayFromWorld

btVector3 btSingleRayCallback::m_rayFromWorld

Definition at line 932 of file btCollisionWorld.cpp.

Referenced by btSingleRayCallback().

◆ m_rayToTrans

btTransform btSingleRayCallback::m_rayToTrans

Definition at line 935 of file btCollisionWorld.cpp.

Referenced by btSingleRayCallback(), and process().

◆ m_rayToWorld

btVector3 btSingleRayCallback::m_rayToWorld

Definition at line 933 of file btCollisionWorld.cpp.

Referenced by btSingleRayCallback().

◆ m_resultCallback

btCollisionWorld::RayResultCallback& btSingleRayCallback::m_resultCallback

Definition at line 939 of file btCollisionWorld.cpp.

Referenced by btSingleRayCallback(), and process().

◆ m_world

const btCollisionWorld* btSingleRayCallback::m_world

Definition at line 938 of file btCollisionWorld.cpp.

Referenced by btSingleRayCallback(), and process().


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