CmDebugCamera.h 887 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #pragma once
  2. #include "BsPrerequisites.h"
  3. #include "CmComponent.h"
  4. #include "CmMath.h"
  5. namespace CamelotFramework
  6. {
  7. class DebugCamera : public Component
  8. {
  9. private:
  10. float mCurrentSpeed;
  11. Degree mPitch;
  12. Degree mYaw;
  13. bool mLastButtonState;
  14. BS::HCamera mCamera;
  15. static const float START_SPEED;
  16. static const float TOP_SPEED;
  17. static const float ACCELERATION;
  18. static const float FAST_MODE_MULTIPLIER;
  19. static const float ROTATION_SPEED; // Degrees/second
  20. /************************************************************************/
  21. /* COMPONENT OVERRIDES */
  22. /************************************************************************/
  23. protected:
  24. friend class SceneObject;
  25. /** Standard constructor.
  26. */
  27. DebugCamera(const HSceneObject& parent);
  28. public:
  29. virtual void update();
  30. };
  31. }