picking up crystal(sphere)

This commit is contained in:
Remco
2016-06-08 12:41:33 +02:00
parent 527394f635
commit bba0a2e2a0
12 changed files with 1959 additions and 16 deletions
+26
View File
@@ -0,0 +1,26 @@
#include "Crystal.h"
#include "Model.h"
Crystal::Crystal(const std::string &fileName, const Vec3f &position, Vec3f &rotation, const float &scale)
{
model = Model::load(fileName);
this->position = position;
this->rotation = rotation;
this->scale = scale;
this->canCollide = true;
filled = true;
}
Crystal::~Crystal()
{
if (model)
Model::unload(model);
}
void Crystal::draw()
{
if (filled)
Entity::draw();
}