feat: assignment 2
This commit is contained in:
13
src/entity.cpp
Normal file
13
src/entity.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "entity.h"
|
||||
|
||||
Entity::Entity()
|
||||
: position_(0.0f, 0.0f, 0.0f)
|
||||
, rotation_(0.0f, 0.0f, 0.0f)
|
||||
, scale_(1.0f, 1.0f, 1.0f)
|
||||
{
|
||||
}
|
||||
|
||||
void Entity::move(const glm::vec3& vec)
|
||||
{
|
||||
position_ += vec;
|
||||
}
|
||||
Reference in New Issue
Block a user