Checkpoint workspace changes

This commit is contained in:
2026-04-29 01:24:21 +08:00
parent 9b6adf1806
commit ef11651ec2
67 changed files with 3161 additions and 1904 deletions

View File

@@ -69,6 +69,14 @@ public:
std::cos(pitchRadians) * std::cos(yawRadians)));
}
Math::Vector3 GetRight() const {
return Math::Vector3::Cross(Math::Vector3::Up(), GetForward()).Normalized();
}
Math::Vector3 GetUp() const {
return Math::Vector3::Cross(GetForward(), GetRight()).Normalized();
}
Math::Vector3 GetPosition() const {
return m_position;
}
@@ -264,14 +272,6 @@ private:
std::clamp(m_pitchDegrees - deltaY * pitchSensitivity, -89.0f, 89.0f);
}
Math::Vector3 GetRight() const {
return Math::Vector3::Cross(Math::Vector3::Up(), GetForward()).Normalized();
}
Math::Vector3 GetUp() const {
return Math::Vector3::Cross(GetForward(), GetRight()).Normalized();
}
float ComputeWorldUnitsPerPixel(float viewportHeight) const {
if (viewportHeight <= Math::EPSILON) {
return 0.0f;