#include <palCollision.h>
Public Attributes | |
bool | m_bHit |
The ray succesfully hit an object. | |
bool | m_bHitPosition |
The ray hit position is available. | |
bool | m_bHitNormal |
The ray hit normal is available. | |
palBodyBase * | m_pBody |
The body that was hit (if applicable). | |
palGeometry * | m_pGeom |
The geometry that was hit (if applicable). | |
palVector3 | m_vHitPosition |
The world position where the ray hit location (if applicable). | |
palVector3 | m_vHitNormal |
The surface normal at the point where the ray hit (if applicable). | |
Float | m_fDistance |
The distance between the ray origin and hit position. |
palRayHit *prh; if (prh->m_bHit) prh->m_vHitPosition.x //do a calculationRaycasting allows the implementation of AI functionality and the simulation of distance sensors (eg: PSD or Sonar)