Implemented Entity constructor.
This commit is contained in:
parent
54108868d7
commit
22e734593e
@ -1,6 +1,8 @@
|
|||||||
#include "entity.hh"
|
#include "entity.hh"
|
||||||
|
|
||||||
Entity::Entity(glm::vec3 position, glm::vec3 rotation) {
|
Entity::Entity(glm::vec3 position, glm::vec3 rotation) {
|
||||||
|
this->position = position;
|
||||||
|
this->rotation = rotation;
|
||||||
}
|
}
|
||||||
|
|
||||||
Entity::Entity(){
|
Entity::Entity(){
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
class Entity {
|
class Entity {
|
||||||
public:
|
public:
|
||||||
Entity(glm::vec3 position, glm::vec3 rotation);
|
Entity(glm::vec3 position, glm::vec3 rotation);
|
||||||
Entity();
|
Entity();
|
||||||
~Entity();
|
~Entity();
|
||||||
void setPosition(glm::vec3 positon);
|
void setPosition(glm::vec3 positon);
|
||||||
void setRotation(glm::vec3 rotation);
|
void setRotation(glm::vec3 rotation);
|
||||||
|
Loading…
Reference in New Issue
Block a user