Commit 4f9d8429 authored by grunt92's avatar grunt92
Browse files

collision

parent 892c8245
#ifndef COLLISION_COMPONENT_
#define COLLISION_COMPONENT_
#include "collision_shape.h"
#include <core/engine.hpp>
#include <memory>
namespace gdw{
class collision_component
......
......@@ -14,7 +14,11 @@ namespace gdw{
{
public:
collision_shape(shape_type shape_type);
~collision_shape();
virtual ~collision_shape();
protected:
shape_type shape_type_;
};
......
#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;
};
}
......
#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
#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
#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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment