Back to index

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

#include <btCollisionWorld.h>

Inheritance diagram for btCollisionWorld::ClosestConvexResultCallback:
Inheritance graph
Collaboration diagram for btCollisionWorld::ClosestConvexResultCallback:
Collaboration graph

List of all members.

Public Member Functions

 ClosestConvexResultCallback (const btVector3 &convexFromWorld, const btVector3 &convexToWorld)
virtual btScalar AddSingleResult (LocalConvexResult &convexResult, bool normalInWorldSpace)
bool HasHit ()

Public Attributes

btVector3 m_convexFromWorld
btVector3 m_convexToWorld
btVector3 m_hitNormalWorld
btVector3 m_hitPointWorld
btCollisionObject * m_hitCollisionObject
btScalar m_closestHitFraction

Detailed Description

Definition at line 265 of file btCollisionWorld.h.

Constructor & Destructor Documentation

btCollisionWorld::ClosestConvexResultCallback::ClosestConvexResultCallback ( const btVector3 convexFromWorld,
const btVector3 convexToWorld 
) [inline]

Definition at line 267 of file btCollisionWorld.h.


Member Function Documentation

virtual btScalar btCollisionWorld::ClosestConvexResultCallback::AddSingleResult ( LocalConvexResult convexResult,
bool  normalInWorldSpace 
) [inline, virtual]

need to transform normal into worldspace

Implements btCollisionWorld::ConvexResultCallback.

Definition at line 281 of file btCollisionWorld.h.

//caller already does the filter on the m_closestHitFraction
                     btAssert(convexResult.m_hitFraction <= m_closestHitFraction);
                     m_closestHitFraction = convexResult.m_hitFraction;
                     m_hitCollisionObject = convexResult.m_hitCollisionObject;
                     if (normalInWorldSpace)
                            m_hitNormalWorld = convexResult.m_hitNormalLocal;
                     } else
                            m_hitNormalWorld = m_hitCollisionObject->getWorldTransform().getBasis()*convexResult.m_hitNormalLocal;
                     m_hitPointWorld = convexResult.m_hitPointLocal;
                     return convexResult.m_hitFraction;
bool btCollisionWorld::ConvexResultCallback::HasHit ( ) [inline, inherited]

Definition at line 253 of file btCollisionWorld.h.

                     return (m_closestHitFraction < btScalar(1.));

Member Data Documentation

Definition at line 252 of file btCollisionWorld.h.

Definition at line 274 of file btCollisionWorld.h.

Definition at line 275 of file btCollisionWorld.h.

Definition at line 279 of file btCollisionWorld.h.

Definition at line 277 of file btCollisionWorld.h.

Definition at line 278 of file btCollisionWorld.h.

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