Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

49 řádky
1005 B

  1. //
  2. // Lol Engine
  3. //
  4. // Copyright © 2010—2018 Sam Hocevar <sam@hocevar.net>
  5. //
  6. // Lol Engine is free software. It comes without any warranty, to
  7. // the extent permitted by applicable law. You can redistribute it
  8. // and/or modify it under the terms of the Do What the Fuck You Want
  9. // to Public License, Version 2, as published by the WTFPL Task Force.
  10. // See http://www.wtfpl.net/ for more details.
  11. //
  12. #pragma once
  13. //
  14. // The GraphicEntity class
  15. // -----------------------
  16. //
  17. #include <lol/math/transform.h>
  18. #include "engine/entity.h"
  19. namespace lol
  20. {
  21. class WorldEntity : public Entity
  22. {
  23. public:
  24. virtual std::string GetName() const;
  25. public:
  26. box3 m_aabb;
  27. vec3 m_position = vec3::zero;
  28. vec3 m_velocity = vec3::zero;
  29. quat m_rotation = quat(1);
  30. vec3 m_rotation_velocity = vec3::zero;
  31. protected:
  32. WorldEntity();
  33. virtual ~WorldEntity();
  34. virtual void tick_game(float seconds);
  35. virtual void tick_draw(float seconds, Scene &scene);
  36. };
  37. } /* namespace lol */