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

Public Member Functions

 btSoftSingleRayCallback (const btVector3 &rayFromWorld, const btVector3 &rayToWorld, const btSoftMultiBodyDynamicsWorld *world, btCollisionWorld::RayResultCallback &resultCallback)
 
virtual bool process (const btBroadphaseProxy *proxy)
 
 btSoftSingleRayCallback (const btVector3 &rayFromWorld, const btVector3 &rayToWorld, const btSoftRigidDynamicsWorld *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 ()
 
virtual bool process (const btBroadphaseProxy *proxy)=0
 

Public Attributes

btVector3 m_rayFromWorld
 
btVector3 m_rayToWorld
 
btTransform m_rayFromTrans
 
btTransform m_rayToTrans
 
btVector3 m_hitNormal
 
const btSoftMultiBodyDynamicsWorldm_world
 
btCollisionWorld::RayResultCallbackm_resultCallback
 
const btSoftRigidDynamicsWorldm_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 180 of file btSoftMultiBodyDynamicsWorld.cpp.

Constructor & Destructor Documentation

◆ btSoftSingleRayCallback() [1/2]

btSoftSingleRayCallback::btSoftSingleRayCallback ( const btVector3 rayFromWorld,
const btVector3 rayToWorld,
const btSoftMultiBodyDynamicsWorld world,
btCollisionWorld::RayResultCallback resultCallback 
)
inline

what about division by zero? --> just set rayDirection[i] to INF/1e30

Definition at line 191 of file btSoftMultiBodyDynamicsWorld.cpp.

◆ btSoftSingleRayCallback() [2/2]

btSoftSingleRayCallback::btSoftSingleRayCallback ( const btVector3 rayFromWorld,
const btVector3 rayToWorld,
const btSoftRigidDynamicsWorld world,
btCollisionWorld::RayResultCallback resultCallback 
)
inline

what about division by zero? --> just set rayDirection[i] to INF/1e30

Definition at line 186 of file btSoftRigidDynamicsWorld.cpp.

Member Function Documentation

◆ process() [1/2]

virtual bool btSoftSingleRayCallback::process ( const btBroadphaseProxy proxy)
inlinevirtual

terminate further ray tests, once the closestHitFraction reached zero

Implements btBroadphaseAabbCallback.

Definition at line 216 of file btSoftMultiBodyDynamicsWorld.cpp.

◆ process() [2/2]

virtual bool btSoftSingleRayCallback::process ( const btBroadphaseProxy proxy)
inlinevirtual

terminate further ray tests, once the closestHitFraction reached zero

Implements btBroadphaseAabbCallback.

Definition at line 211 of file btSoftRigidDynamicsWorld.cpp.

Member Data Documentation

◆ m_hitNormal

btVector3 btSoftSingleRayCallback::m_hitNormal

Definition at line 186 of file btSoftMultiBodyDynamicsWorld.cpp.

◆ m_rayFromTrans

btTransform btSoftSingleRayCallback::m_rayFromTrans

Definition at line 184 of file btSoftMultiBodyDynamicsWorld.cpp.

◆ m_rayFromWorld

btVector3 btSoftSingleRayCallback::m_rayFromWorld

Definition at line 182 of file btSoftMultiBodyDynamicsWorld.cpp.

◆ m_rayToTrans

btTransform btSoftSingleRayCallback::m_rayToTrans

Definition at line 185 of file btSoftMultiBodyDynamicsWorld.cpp.

◆ m_rayToWorld

btVector3 btSoftSingleRayCallback::m_rayToWorld

Definition at line 183 of file btSoftMultiBodyDynamicsWorld.cpp.

◆ m_resultCallback

btCollisionWorld::RayResultCallback & btSoftSingleRayCallback::m_resultCallback

Definition at line 189 of file btSoftMultiBodyDynamicsWorld.cpp.

◆ m_world [1/2]

const btSoftMultiBodyDynamicsWorld* btSoftSingleRayCallback::m_world

Definition at line 188 of file btSoftMultiBodyDynamicsWorld.cpp.

◆ m_world [2/2]

const btSoftRigidDynamicsWorld* btSoftSingleRayCallback::m_world

Definition at line 183 of file btSoftRigidDynamicsWorld.cpp.


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