palRayHitCallback Class Reference

#include <palCollision.h>

List of all members.

Public Member Functions

virtual Float AddHit (palRayHit &hit)=0


Detailed Description

Raycasting callback. This will be called for each ray hit.

Member Function Documentation

virtual Float palRayHitCallback::AddHit ( palRayHit hit  )  [pure virtual]

Notifies the code of a hit.

Parameters:
hit the information about the hit.
Returns:
the max fraction of the ray length from 0 - 1 that should accepted and passed to add hit. This means if you wanted just the closest hit, you could always pass the fraction of of the hit passed in. This could also be used to ignore certain physics objects and get the closest not counting those certain ones. If you want to stop, return 0. If you want all hits, return 1.


The documentation for this class was generated from the following files:

Generated on Mon Aug 31 13:58:02 2009 for pal by  doxygen 1.5.7.1