Entity.h 287 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include "Vector.h"
  3. class Model;
  4. class Entity
  5. {
  6. public:
  7. Entity();
  8. ~Entity();
  9. Model* model;
  10. virtual void draw();
  11. virtual void update(float elapsedTime) {};
  12. Vec3f position;
  13. Vec3f rotation;
  14. float scale;
  15. bool canCollide;
  16. bool inObject(const Vec3f &position);
  17. };