Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GameDevWeek
Sommersemester 2015
Cpp
Deth Buff Arr
Commits
4f9d8429
Commit
4f9d8429
authored
Sep 21, 2015
by
grunt92
Browse files
collision
parent
892c8245
Changes
6
Hide whitespace changes
Inline
Side-by-side
include/physics/collision/collision_component.h
View file @
4f9d8429
#ifndef COLLISION_COMPONENT_
#define COLLISION_COMPONENT_
#include "collision_shape.h"
#include <core/engine.hpp>
#include <memory>
namespace
gdw
{
class
collision_component
...
...
include/physics/collision/collision_shape.h
View file @
4f9d8429
...
...
@@ -14,7 +14,11 @@ namespace gdw{
{
public:
collision_shape
(
shape_type
shape_type
);
~
collision_shape
();
virtual
~
collision_shape
();
protected:
shape_type
shape_type_
;
};
...
...
include/physics/collision/ray.h
View file @
4f9d8429
#ifndef RAY_
#define RAY_
namespace
gdw
{
#include "collision_shape.h"
#include <glm/glm.hpp>
class
ray
(
glm
::
vec3
source
,
glm
::
vec3
destination
)
:
collision_shape
(){
vec3
source
;
vec3
destination
;
}
namespace
gdw
{
class
ray
:
public
collision_shape
{
public:
ray
(
glm
::
vec3
source
,
glm
::
vec3
destination
);
~
ray
();
private:
glm
::
vec3
source
;
glm
::
vec3
destination
;
};
}
...
...
src/physics/collision/collision_component.cpp
0 → 100644
View file @
4f9d8429
#include <physics/collision/collision_component.h>
namespace
gdw
{
collision_component
::
collision_component
(
engine
&
engine
,
shape_type
shape_type
){
}
collision_component
::~
collision_component
(){
}
}
\ No newline at end of file
src/physics/collision/collision_shape.cpp
0 → 100644
View file @
4f9d8429
#include <physics/collision/collision_shape.h>
namespace
gdw
{
collision_shape
::
collision_shape
(
shape_type
shape_type
)
:
shape_type_
(
shape_type
){
}
collision_shape
::~
collision_shape
(){
}
}
\ No newline at end of file
src/physics/collision/ray.cpp
0 → 100644
View file @
4f9d8429
#include <physics/collision/ray.h>
#include <glm/glm.hpp>
namespace
gdw
{
ray
::
ray
(
glm
::
vec3
source
,
glm
::
vec3
destination
)
:
collision_shape
(
shape_type
::
ray
){
}
ray
::~
ray
(){
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment