Back to index

supertuxkart  0.5+dfsg1
Public Member Functions | Public Attributes
btStorageResult Struct Reference

#include <btDiscreteCollisionDetectorInterface.h>

Inheritance diagram for btStorageResult:
Inheritance graph
[legend]
Collaboration diagram for btStorageResult:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 btStorageResult ()
virtual ~btStorageResult ()
virtual void addContactPoint (const btVector3 &normalOnBInWorld, const btVector3 &pointInWorld, btScalar depth)
virtual void setShapeIdentifiers (int partId0, int index0, int partId1, int index1)=0
 setShapeIdentifiers provides experimental support for per-triangle material / custom material combiner

Public Attributes

btVector3 m_normalOnSurfaceB
btVector3 m_closestPointInB
btScalar m_distance

Detailed Description

Definition at line 65 of file btDiscreteCollisionDetectorInterface.h.


Constructor & Destructor Documentation

Definition at line 71 of file btDiscreteCollisionDetectorInterface.h.

                                : m_distance(btScalar(1e30))
              {

              }
virtual btStorageResult::~btStorageResult ( ) [inline, virtual]

Definition at line 75 of file btDiscreteCollisionDetectorInterface.h.

{};

Member Function Documentation

virtual void btStorageResult::addContactPoint ( const btVector3 normalOnBInWorld,
const btVector3 pointInWorld,
btScalar  depth 
) [inline, virtual]

Implements btDiscreteCollisionDetectorInterface::Result.

Definition at line 77 of file btDiscreteCollisionDetectorInterface.h.

              {
                     if (depth < m_distance)
                     {
                            m_normalOnSurfaceB = normalOnBInWorld;
                            m_closestPointInB = pointInWorld;
                            m_distance = depth;
                     }
              }
virtual void btDiscreteCollisionDetectorInterface::Result::setShapeIdentifiers ( int  partId0,
int  index0,
int  partId1,
int  index1 
) [pure virtual, inherited]

setShapeIdentifiers provides experimental support for per-triangle material / custom material combiner

Implemented in btManifoldResult, and btPointCollector.


Member Data Documentation

Definition at line 68 of file btDiscreteCollisionDetectorInterface.h.

Definition at line 69 of file btDiscreteCollisionDetectorInterface.h.

Definition at line 67 of file btDiscreteCollisionDetectorInterface.h.


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