Back to index

supertuxkart  0.5+dfsg1
Public Member Functions | Public Attributes
btCollisionWorld::ClosestRayResultCallback Struct Reference

#include <btCollisionWorld.h>

Inheritance diagram for btCollisionWorld::ClosestRayResultCallback:
Inheritance graph
Collaboration diagram for btCollisionWorld::ClosestRayResultCallback:
Collaboration graph

List of all members.

Public Member Functions

 ClosestRayResultCallback (const btVector3 &rayFromWorld, const btVector3 &rayToWorld)
virtual btScalar AddSingleResult (LocalRayResult &rayResult, bool normalInWorldSpace)
bool HasHit ()

Public Attributes

btVector3 m_rayFromWorld
btVector3 m_rayToWorld
btVector3 m_hitNormalWorld
btVector3 m_hitPointWorld
btScalar m_closestHitFraction
btCollisionObject * m_collisionObject

Detailed Description

Definition at line 188 of file btCollisionWorld.h.

Constructor & Destructor Documentation

btCollisionWorld::ClosestRayResultCallback::ClosestRayResultCallback ( const btVector3 rayFromWorld,
const btVector3 rayToWorld 
) [inline]

Definition at line 190 of file btCollisionWorld.h.


Member Function Documentation

virtual btScalar btCollisionWorld::ClosestRayResultCallback::AddSingleResult ( LocalRayResult rayResult,
bool  normalInWorldSpace 
) [inline, virtual]

need to transform normal into worldspace

Implements btCollisionWorld::RayResultCallback.

Definition at line 202 of file btCollisionWorld.h.

                     //caller already does the filter on the m_closestHitFraction
                     btAssert(rayResult.m_hitFraction <= m_closestHitFraction);
                     m_closestHitFraction = rayResult.m_hitFraction;
                     m_collisionObject = rayResult.m_collisionObject;
                     if (normalInWorldSpace)
                            m_hitNormalWorld = rayResult.m_hitNormalLocal;
                     } else
                            m_hitNormalWorld = m_collisionObject->getWorldTransform().getBasis()*rayResult.m_hitNormalLocal;
                     return rayResult.m_hitFraction;

Here is the call graph for this function:

Here is the caller graph for this function:

bool btCollisionWorld::RayResultCallback::HasHit ( ) [inline, inherited]

Definition at line 175 of file btCollisionWorld.h.

                     return (m_collisionObject != 0);

Here is the caller graph for this function:

Member Data Documentation

Definition at line 169 of file btCollisionWorld.h.

Definition at line 170 of file btCollisionWorld.h.

Definition at line 199 of file btCollisionWorld.h.

Definition at line 200 of file btCollisionWorld.h.

Definition at line 196 of file btCollisionWorld.h.

Definition at line 197 of file btCollisionWorld.h.

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