Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages

Contact Class Reference

#include <contact.h>

Collaboration diagram for Contact:

Collaboration graph
[legend]
List of all members.

Detailed Description

Collision detection contact data Used for returning collision detection contact results.

Author:
Mattias Jansson (mattias@realityrift.com)


Public Member Functions

 Contact ()

Public Attributes

std::vector< Vector3dm_vkPoints
std::vector< float > m_vfDepths
Vector3d m_kNormal
MaterialPtr m_apkMaterials [2]
SceneNodem_pkSceneNode


Constructor & Destructor Documentation

Contact  )  [inline]
 

Reset data


Member Data Documentation

std::vector< Vector3d > m_vkPoints
 

Contact points, sorted in descending depth (deepest first)

std::vector< float > m_vfDepths
 

Penetration depths for each point

Vector3d m_kNormal
 

Normal of colliding area/line/point

MaterialPtr m_apkMaterials[2]
 

Materials of the contacting surfaces. If either is null, no material associated with that colliding primitive

SceneNode* m_pkSceneNode
 

Scene node collided with. This is invalid for static geometry!


The documentation for this class was generated from the following file:
Generated on Wed Jan 21 14:21:11 2004 for NeoEngine by doxygen 1.3.5