mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-15 16:16:14 +00:00
Minor fixes/adjustments
This commit is contained in:
@@ -17,7 +17,7 @@ CCamera::CCamera()
|
||||
, mProjectionDirty(true)
|
||||
, mFrustumPlanesDirty(true)
|
||||
{
|
||||
SetOrbit(CVector3f(0), 5.f);
|
||||
ResetOrbit();
|
||||
}
|
||||
|
||||
// todo: make it actually look at the target!
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user