virtual void update(Mf::Scalar t, Mf::Scalar dt);
virtual void draw(Mf::Scalar alpha) const;
+ void setZCoord(Mf::Scalar z);
+
+ void addImpulse(Mf::Vector2 impulse);
+ void addForce(Mf::Vector2 force);
+ void setPosition(Mf::Vector2 position);
+
virtual int getOctant(const Mf::Aabb& aabb) const;
Tilemap tilemap;
private:
- static const Mf::Scalar z = 96.0;
+ mutable Mf::Scalar mZCoord;
};