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

Public Member Functions

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

Public Attributes

b2Fixturem_fixture
 
b2Vec2 m_normal
 
b2Vec2 m_point
 

Detailed Description

Definition at line 26 of file edge_shapes.cpp.

Constructor & Destructor Documentation

◆ EdgeShapesCallback()

EdgeShapesCallback::EdgeShapesCallback ( )
inline

Definition at line 29 of file edge_shapes.cpp.

Member Function Documentation

◆ ReportFixture()

float EdgeShapesCallback::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 34 of file edge_shapes.cpp.

Member Data Documentation

◆ m_fixture

b2Fixture* EdgeShapesCallback::m_fixture

Definition at line 44 of file edge_shapes.cpp.

◆ m_normal

b2Vec2 EdgeShapesCallback::m_normal

Definition at line 46 of file edge_shapes.cpp.

◆ m_point

b2Vec2 EdgeShapesCallback::m_point

Definition at line 45 of file edge_shapes.cpp.


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


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