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_COLLISION_BOX_H
2 #define SKR_FPS2_COLLISION_COLLISION_BOX_H
6 #include "reactphysics3d.h"
8 #include "..\Renderer\OpenGL\Definitions.h"
9 #include "..\Renderer\OpenGL\Shader.h"
82 #endif // SKR_FPS2_COLLISION_COLLISION_BOX_H
rp3d::ProxyShape * _proxyShape
proxy shape of the collision object
Definition: CollisionBox.h:27
glm::vec3 _position
position
Definition: CollisionBox.h:29
CollisionCategory GetCollisionCategory()
returns the collision categories of this box
Definition: CollisionBox.cpp:38
defines a box used to collision
Definition: CollisionBox.h:21
void SetCollisionCatergory(CollisionCategory category)
sets CollisionCategory using the enum
Definition: CollisionBox.cpp:43
rp3d::CollisionWorld * _world
RP3D collision world.
Definition: CollisionBox.h:23
handles shader loading, compiling and linking. Also provides access to set uniform ids and usage.
Definition: Shader.h:31
rp3d::CollisionShape * _shape
shape of the collision object
Definition: CollisionBox.h:26
CollisionBox()
Default constructor initiliazes all pointers as null_ptr.
Definition: CollisionBox.cpp:10
void UpdatePosition(glm::vec3 pos)
Updates position of this CollisionBox as glm vec3.
Definition: CollisionBox.cpp:53
void DrawCollisionShape(skr::fps2::Renderer::OpenGL::Shader shader, glm::mat4 view, glm::mat4 proj, glm::mat4 model, glm::vec3 color=glm::vec3(1.0f, 0.0f, 0.0f)) const
Draws the collision shape.
Definition: CollisionBox.cpp:66
Definition: AssetPath.h:10
CollisionCategory
CollisionCategory collision bodys have categories, which can be used to filter collision events,...
Definition: Definitions.h:27
rp3d::CollisionBody * _body
collision body of the box
Definition: CollisionBox.h:25
specifies bounding box of a geometry
Definition: BoundingBox.h:17
BoundingBox _boundingBox
bounding box of the collision shape
Definition: CollisionBox.h:75