Checkpoint workspace changes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user