Gets the all entities hit by the ray Callback class used to get collision data from ray queries NOTE: Gets up to MAX_COUNT amount of entities, MAX_COUNT being defined inside of RaycastCallback.hpp
More...
#include <RaycastCallback.hpp>
Gets the all entities hit by the ray Callback class used to get collision data from ray queries NOTE: Gets up to MAX_COUNT amount of entities, MAX_COUNT being defined inside of RaycastCallback.hpp
Definition at line 49 of file RaycastCallback.hpp.
| Engine::RayCastMultipleCallback::RayCastMultipleCallback |
( |
| ) |
|
| Engine::RayCastMultipleCallback::RayCastMultipleCallback |
( |
const CollisionLayer |
detectLayers | ) |
|
- Parameters
-
| detectLayers | The layers the ray will be checking for |
Definition at line 39 of file RaycastCallback.cpp.
| float32 Engine::RayCastMultipleCallback::ReportFixture |
( |
b2Fixture * |
fixture, |
|
|
const b2Vec2 & |
point, |
|
|
const b2Vec2 & |
normal, |
|
|
float32 |
|
|
) |
| |
|
override |
Function used by Box2D to tell the Callback class that the ray has collided with a fixture.
- Parameters
-
| fixture | The fixture the ray intersected with |
| point | The point the ray intersected with the fixture |
| normal | The normal of the surface the ray intersected with |
- Returns
- Number determines the query behaviour of the ray, 1 continue, 0 stop and return fraction parameter to get the closest
Definition at line 43 of file RaycastCallback.cpp.
The documentation for this class was generated from the following files: