#include <castres.h>
Public Member Functions | |
| CastResultStruct (void) | |
| void | Reset (void) |
Public Attributes | |
| bool | StartBad |
| float | Fraction |
| Vector3 | Normal |
| uint32 | SurfaceType |
| bool | ComputeContactPoint |
| Vector3 | ContactPoint |
CastResultStruct Result of a volume or ray cast operation will be stored in the following structure NOTE: If you can avoid it, do not enable ComputeContactPoint. When casting rays, it is more efficient to use the resulting Fraction to compute the contact point outside of the collision detection code. In the case of AABox sweeping for character collision detection, you don't usually need the actual point of contact, etc etc.
The default state of ComputeContactPoint is false