CmDebugCamera.h 916 B

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