Public Types | Public Member Functions | Public Attributes | List of all members
RayCastMultipleCallback Class Reference
Inheritance diagram for RayCastMultipleCallback:
Inheritance graph
[legend]

Public Types

enum  { e_maxCount = 3 }
 

Public Member Functions

 RayCastMultipleCallback ()
 
float ReportFixture (b2Fixture *fixture, const b2Vec2 &point, const b2Vec2 &normal, float) override
 
- Public Member Functions inherited from b2RayCastCallback
virtual ~b2RayCastCallback ()
 

Public Attributes

int32 m_count
 
b2Vec2 m_normals [e_maxCount]
 
b2Vec2 m_points [e_maxCount]
 

Detailed Description

Definition at line 107 of file ray_cast.cpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
e_maxCount 

Definition at line 110 of file ray_cast.cpp.

Constructor & Destructor Documentation

◆ RayCastMultipleCallback()

RayCastMultipleCallback::RayCastMultipleCallback ( )
inline

Definition at line 115 of file ray_cast.cpp.

Member Function Documentation

◆ ReportFixture()

float RayCastMultipleCallback::ReportFixture ( b2Fixture fixture,
const b2Vec2 point,
const b2Vec2 normal,
float  fraction 
)
inlineoverridevirtual

Called for each fixture found in the query. You control how the ray cast proceeds by returning a float: return -1: ignore this fixture and continue return 0: terminate the ray cast return fraction: clip the ray to this point return 1: don't clip the ray and continue

Parameters
fixturethe fixture hit by the ray
pointthe point of initial intersection
normalthe normal vector at the point of intersection
fractionthe fraction along the ray at the point of intersection
Returns
-1 to filter, 0 to terminate, fraction to clip the ray for closest hit, 1 to continue

Implements b2RayCastCallback.

Definition at line 120 of file ray_cast.cpp.

Member Data Documentation

◆ m_count

int32 RayCastMultipleCallback::m_count

Definition at line 149 of file ray_cast.cpp.

◆ m_normals

b2Vec2 RayCastMultipleCallback::m_normals[e_maxCount]

Definition at line 148 of file ray_cast.cpp.

◆ m_points

b2Vec2 RayCastMultipleCallback::m_points[e_maxCount]

Definition at line 147 of file ray_cast.cpp.


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


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:23