![]()  | 
  
    Jolt Physics
    
   A multi core friendly Game Physics Engine 
   | 
 
Structure that holds a ray cast or other object cast hit. More...
#include <CastResult.h>
  
Public Member Functions | |
| JPH_OVERRIDE_NEW_DELETE float | GetEarlyOutFraction () const | 
| Function required by the CollisionCollector. A smaller fraction is considered to be a 'better hit'. For rays/cast shapes we can just use the collision fraction.  More... | |
Public Attributes | |
| BodyID | mBodyID | 
| Body that was hit.  More... | |
| float | mFraction = 1.0f + FLT_EPSILON | 
| Hit fraction of the ray/object [0, 1], HitPoint = Start + mFraction * (End - Start)  More... | |
Structure that holds a ray cast or other object cast hit.
      
  | 
  inline | 
Function required by the CollisionCollector. A smaller fraction is considered to be a 'better hit'. For rays/cast shapes we can just use the collision fraction.
| float BroadPhaseCastResult::mFraction = 1.0f + FLT_EPSILON | 
Hit fraction of the ray/object [0, 1], HitPoint = Start + mFraction * (End - Start)