PCG-FPS
v2 m0.22.4
Simple First Person Shooter with Procedurally Generated Level
|
Go to the documentation of this file. 1 #ifndef SKR_FPS2_COLLISION_CONTACTCALLBACK_H
2 #define SKR_FPS2_COLLISION_CONTACTCALLBACK_H
8 #include "reactphysics3d.h"
39 virtual void notifyContact(
const CollisionCallbackInfo& collisionCallbackInfo)
override;
59 #endif // !SKR_FPS2_COLLISION_CONTACTCALLBACK_H
void ResetContactPoints()
clears list of registered contact points
Definition: CollisionCallback.cpp:52
Definition: AssetPath.h:10
implements rp3d::CollisionCallback from ReactPhysics3D Library Used in detection of collisions betwee...
Definition: CollisionCallback.h:35
virtual void notifyContact(const CollisionCallbackInfo &collisionCallbackInfo) override
callback function called if a collision is detected
Definition: CollisionCallback.cpp:19
glm::vec3 GetMeanNormalOfContactPoints()
calculates mean normal of registered contact points
Definition: CollisionCallback.cpp:62
std::vector< ContactPoint > _contactPoints
list of registered contact points
Definition: CollisionCallback.h:53
std::vector< ContactPoint > GetContactPoints()
returns list of registered contact points
Definition: CollisionCallback.cpp:57