This class handles the results of tracing a ray through the world. More...
#include "PhysicsWorld.hpp"
Public Member Functions | |
RayResultT (const btCollisionObject *IgnoreObject) | |
The constructor. More... | |
TraceUserEntityT * | GetHitPhysicsComp () const |
If something was hit (hasHit() returns true), this method returns a pointer to the Physics component that the hit collision object belongs to. More... | |
virtual btScalar | addSingleResult (btCollisionWorld::LocalRayResult &RayResult, bool NormalIsInWorldSpace) |
Protected Attributes | |
const btCollisionObject * | m_IgnoreObject |
This class handles the results of tracing a ray through the world.
As such, it is called back for intermediate results and thus can "configure" or "parametrize" the trace, and it keeps the final trace result for inspection by the caller as well.
|
inline |
The constructor.
IgnoreObject | A collision object to ignore for this trace. This is usually the object from which the trace emanates. |
|
inline |
If something was hit (hasHit() returns true), this method returns a pointer to the Physics component that the hit collision object belongs to.
The returned pointer is NULL if the collision object belongs to the world. If nothing was hit (hasHit() returns false), NULL is always returned.