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

Structure that holds the result of colliding a point against a shape. More...

#include <CollidePointResult.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 point queries there is no sensible return value. More...
 

Public Attributes

BodyID mBodyID
 Body that was hit. More...
 
SubShapeID mSubShapeID2
 Sub shape ID of shape that we collided against. More...
 

Detailed Description

Structure that holds the result of colliding a point against a shape.

Member Function Documentation

◆ GetEarlyOutFraction()

JPH_OVERRIDE_NEW_DELETE float CollidePointResult::GetEarlyOutFraction ( ) const
inline

Function required by the CollisionCollector. A smaller fraction is considered to be a 'better hit'. For point queries there is no sensible return value.

Member Data Documentation

◆ mBodyID

BodyID CollidePointResult::mBodyID

Body that was hit.

◆ mSubShapeID2

SubShapeID CollidePointResult::mSubShapeID2

Sub shape ID of shape that we collided against.


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