Serializing editor camera position and direction.

Editor camera should resume where it was
This commit is contained in:
Antoine Pilote
2023-07-01 11:49:38 -04:00
parent 076ac59283
commit 93d007680b
4 changed files with 61 additions and 2 deletions
+8
View File
@@ -19,6 +19,13 @@ namespace Nuake
Vector3 TargetPos = Vector3(0, 0, 0);
bool IsMoving = false;
Ref<EditorCamera> Copy();
json Serialize();
bool Deserialize(const std::string& str);
void SetYaw(float yaw);
void SetPitch(float pitch);
private:
bool controlled = false;
bool firstMouse = false;
@@ -28,5 +35,6 @@ namespace Nuake
float Yaw = -135.f;
float Pitch = -45.f;
void UpdateDirection();
};
}