Different game

This commit is contained in:
2016-06-22 22:05:50 +02:00
parent 0f7895dc09
commit 5910170fd2
145 changed files with 9790 additions and 936 deletions
+22
View File
@@ -0,0 +1,22 @@
#include "LevelObject.h"
#include "Model.h"
LevelObject::LevelObject(const std::string &fileName, const Vec3f &position, const Vec3f &rotation, const float &scale, const bool &hasCollision)
{
model = Model::load(fileName);
this->position = position;
this->position.x -= model->center.x;
this->position.z -= model->center.z;
this->rotation = rotation;
this->scale = scale;
this->canCollide = hasCollision;
}
LevelObject::~LevelObject()
{
if (model)
Model::unload(model);
}