From f5a1864472f63a45f73e6dc0ffa98ad297b40229 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Thu, 13 Nov 2014 00:37:27 +0100 Subject: [PATCH] Added Getters and Setters. --- entity.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/entity.cc b/entity.cc index e1bcfa0..4f68a6d 100644 --- a/entity.cc +++ b/entity.cc @@ -14,3 +14,15 @@ Entity::~Entity(){ glm::vec3 Entity::getPosition() { return position; } + +glm::vec3 Entity::getRotation() { + return rotation; +} + +void Entity::setPosition(glm::vec3 position) { + this->position = position; +} + +void Entity::setRotation(glm::vec3 rotation) { + this->rotation = rotation; +}