| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- #pragma once
- #include "BsPrerequisites.h"
- #include "CmComponent.h"
- #include "CmInputHandler.h"
- #include "CmMath.h"
- namespace CamelotFramework
- {
- class DebugCamera : public Component
- {
- private:
- float mCurrentSpeed;
- Degree mPitch;
- Degree mYaw;
- bool mLastButtonState;
- BS::HCamera mCamera;
- static const float START_SPEED;
- static const float TOP_SPEED;
- static const float ACCELERATION;
- static const float FAST_MODE_MULTIPLIER;
- static const float ROTATION_SPEED; // Degrees/second
- /************************************************************************/
- /* COMPONENT OVERRIDES */
- /************************************************************************/
- protected:
- friend class SceneObject;
- /** Standard constructor.
- */
- DebugCamera(const HSceneObject& parent);
- public:
- virtual void update();
- };
- }
|