Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
RayCastResult Class Reference

Specialization of cast result against a shape. More...

#include <CastResult.h>

Inheritance diagram for RayCastResult:
BroadPhaseCastResult

Public Attributes

JPH_OVERRIDE_NEW_DELETE SubShapeID mSubShapeID2
 Sub shape ID of shape that we collided against.
 
- Public Attributes inherited from BroadPhaseCastResult
BodyID mBodyID
 Body that was hit.
 
float mFraction = 1.0f + FLT_EPSILON
 Hit fraction of the ray/object [0, 1], HitPoint = Start + mFraction * (End - Start)
 

Additional Inherited Members

- Public Member Functions inherited from BroadPhaseCastResult
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.
 
void Reset ()
 Reset this result so it can be reused for a new cast.
 

Detailed Description

Specialization of cast result against a shape.

Member Data Documentation

◆ mSubShapeID2

JPH_OVERRIDE_NEW_DELETE SubShapeID RayCastResult::mSubShapeID2

Sub shape ID of shape that we collided against.


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