Added Getters and Setters.
This commit is contained in:
parent
9cb7278eb3
commit
f5a1864472
12
entity.cc
12
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user