palRayHitCallback Class Reference
#include <palCollision.h>
List of all members.
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:
- /var/www/hosted/adrianboeing.com/pal/current/pal/pal/pal/palCollision.h
- /var/www/hosted/adrianboeing.com/pal/current/pal/pal/pal/palCollision.cpp