Boar::~Boar()
{
+
}
void Boar::update(float _deltaT)
//BOAR DIE!!!
alive = false;
+ if (!timeresistant)
+ {
+ mainScene->addEvent(this, 5);
+ }
+
_other->move(-pdist * (float).5 * vec3(0.f, normal[1], 0.f));
}
activated = true;
}
+
+void Boar::revive()
+{
+ alive = true;
+}
\ No newline at end of file
//virtual void draw(drawTarget target = DRAW_Model) const override;
virtual void collides(SceneObject* other, btPersistentManifold* contactManifold, float deltaT = 1.f) override;
+ void revive();
protected:
bool activated = false;