Back to index

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

#include <btPointCollector.h>

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

List of all members.

Public Member Functions

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

Public Attributes

btVector3 m_normalOnBInWorld
btVector3 m_pointInWorld
btScalar m_distance
bool m_hasResult

Detailed Description

Definition at line 23 of file btPointCollector.h.


Constructor & Destructor Documentation

Definition at line 33 of file btPointCollector.h.

              : m_distance(btScalar(1e30)),m_hasResult(false)
       {
       }

Member Function Documentation

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

Implements btDiscreteCollisionDetectorInterface::Result.

Definition at line 47 of file btPointCollector.h.

       {
              if (depth< m_distance)
              {
                     m_hasResult = true;
                     m_normalOnBInWorld = normalOnBInWorld;
                     m_pointInWorld = pointInWorld;
                     //negative means penetration
                     m_distance = depth;
              }
       }
virtual void btPointCollector::setShapeIdentifiers ( int  partId0,
int  index0,
int  partId1,
int  index1 
) [inline, virtual]

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

Implements btDiscreteCollisionDetectorInterface::Result.

Definition at line 38 of file btPointCollector.h.

       {
              (void)partId0;
              (void)index0;
              (void)partId1;
              (void)index1;
              //??
       }

Member Data Documentation

Definition at line 29 of file btPointCollector.h.

Definition at line 31 of file btPointCollector.h.

Definition at line 27 of file btPointCollector.h.

Definition at line 28 of file btPointCollector.h.


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