From 22e734593e82a6864688d812bad4575a8918f71d Mon Sep 17 00:00:00 2001 From: Faerbit Date: Thu, 30 Oct 2014 23:30:56 +0100 Subject: [PATCH] Implemented Entity constructor. --- entity.cc | 2 ++ entity.hh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/entity.cc b/entity.cc index a0a9101..a0a070e 100644 --- a/entity.cc +++ b/entity.cc @@ -1,6 +1,8 @@ #include "entity.hh" Entity::Entity(glm::vec3 position, glm::vec3 rotation) { + this->position = position; + this->rotation = rotation; } Entity::Entity(){ diff --git a/entity.hh b/entity.hh index 9ec1431..959cf5d 100644 --- a/entity.hh +++ b/entity.hh @@ -6,7 +6,7 @@ class Entity { public: Entity(glm::vec3 position, glm::vec3 rotation); - Entity(); + Entity(); ~Entity(); void setPosition(glm::vec3 positon); void setRotation(glm::vec3 rotation);