cCollisionEvent Struct Reference
[Collision Detection]

cCollisionEvent stores all information related to the intersection (or collision) between an segment and an object. More...

#include <CCollisionBasics.h>

List of all members.

Public Member Functions

void clear ()
 initialize all data

Public Attributes

cGenericObjectm_object
 Pointer to the collided object.
cTrianglem_triangle
 Pointer to collided triangle. This pointer may be NULL for collisions with non triangle based objects.
cVector3d m_localPos
 Position of the collision point in reference to the objects coordinate frame (local coordinates).
cVector3d m_globalPos
 Position of the collision point in world coordinates (global coordinates).
cVector3d m_localNormal
 Surface normal at collision point in reference to the objects coordinate frame (local coordinates).
cVector3d m_globalNormal
 Surface normal at collision point in world coordinates (global coordinates).
double m_squareDistance
 Square distance between ray origin and collision point.
cVector3d m_adjustedSegmentAPoint


Detailed Description

cCollisionEvent stores all information related to the intersection (or collision) between an segment and an object.

Member Data Documentation

If the position of segment A is modified to take into account motion (see m_adjustObjectMotion in cCollisionSettings), the value is stored hare.


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


CHAI3D 2.0.0 documentation
Please address any questions to support@chai3d.org
(C) 2003-2009 - CHAI 3D
All Rights Reserved.