Engine
Frameworkcreatedbymeusableforthecreationofsimplegames.CurrentlysupportsOpenGL(Verysimple)andVulkan.
Public Types | Public Member Functions | Friends | List of all members
Engine::RayCastMultipleCallback Class Reference

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>

Inheritance diagram for Engine::RayCastMultipleCallback:

Public Types

enum  { MAX_COUNT = 5 }
 

Public Member Functions

 RayCastMultipleCallback ()
 
 RayCastMultipleCallback (const CollisionLayer detectLayers)
 
Parameters
detectLayersThe layers the ray will be checking for
More...
 
float32 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. More...
 

Friends

class CollisionSystem
 

Detailed Description

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.

Member Enumeration Documentation

anonymous enum
Enumerator
MAX_COUNT 

Definition at line 53 of file RaycastCallback.hpp.

Constructor & Destructor Documentation

Engine::RayCastMultipleCallback::RayCastMultipleCallback ( )

Definition at line 35 of file RaycastCallback.cpp.

Engine::RayCastMultipleCallback::RayCastMultipleCallback ( const CollisionLayer  detectLayers)

Parameters
detectLayersThe layers the ray will be checking for

Definition at line 39 of file RaycastCallback.cpp.

Member Function Documentation

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
fixtureThe fixture the ray intersected with
pointThe point the ray intersected with the fixture
normalThe 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.

Friends And Related Function Documentation

friend class CollisionSystem
friend

Definition at line 51 of file RaycastCallback.hpp.


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