Minor fixes/adjustments

This commit is contained in:
Aruki
2017-02-21 00:09:03 -07:00
parent d350e983d9
commit ac2430e61c
4 changed files with 13 additions and 9 deletions

View File

@@ -17,7 +17,7 @@ CCamera::CCamera()
, mProjectionDirty(true)
, mFrustumPlanesDirty(true)
{
SetOrbit(CVector3f(0), 5.f);
ResetOrbit();
}
// todo: make it actually look at the target!

View File

@@ -87,6 +87,8 @@ public:
inline void SetLookSpeed(float LookSpeed) { mLookSpeed = LookSpeed; }
inline void SetAspectRatio(float AspectRatio) { mAspectRatio = AspectRatio; mProjectionDirty = true; mFrustumPlanesDirty = true; }
inline void ResetOrbit() { SetOrbit(CVector3f::skZero, 5.f); }
// Private
private:
void ValidatePitch();