PCG-FPS  v2 m0.22.4
Simple First Person Shooter with Procedurally Generated Level
Public Member Functions | Public Attributes | List of all members
skr::fps2::Collision::RaycastCallback Class Reference

implements rp3d::RaycastCallback from ReactPhysics3D Library Used in hit detection More...

#include <RaycastCallback.h>

Inheritance diagram for skr::fps2::Collision::RaycastCallback:

Public Member Functions

float notifyRaycastHit (const rp3d::RaycastInfo &info)
 callback function called if a hit is registered More...
 
void ClearHits ()
 clears list of registered hit infos More...
 

Public Attributes

std::vector< rp3d::Vector3 > _hitInfos
 list of hit info objects, containing information of each registered hit More...
 

Detailed Description

implements rp3d::RaycastCallback from ReactPhysics3D Library Used in hit detection

Member Function Documentation

◆ ClearHits()

void skr::fps2::Collision::RaycastCallback::ClearHits ( )

clears list of registered hit infos

◆ notifyRaycastHit()

float skr::fps2::Collision::RaycastCallback::notifyRaycastHit ( const rp3d::RaycastInfo &  info)

callback function called if a hit is registered

Parameters
infoinfo bject, containing information of the registered hit
Returns
0.0f as no additional information about the hit is needed

Member Data Documentation

◆ _hitInfos

std::vector<rp3d::Vector3> skr::fps2::Collision::RaycastCallback::_hitInfos

list of hit info objects, containing information of each registered hit


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