Update ArcballCameraController
This commit is contained in:
@@ -120,11 +120,18 @@ namespace OpenVulkano::Scene
|
||||
|
||||
[[nodiscard]] Math::Vector3f GetViewDirection() const
|
||||
{
|
||||
return { m_view[0][2], m_view[1][2], m_view[2][2] };
|
||||
return { -m_view[0][2], -m_view[1][2], -m_view[2][2] };
|
||||
}
|
||||
|
||||
[[nodiscard]] Math::Vector3f GetUpVector() const
|
||||
{
|
||||
return { m_view[0][1], m_view[1][1], m_view[1][2] };
|
||||
}
|
||||
|
||||
[[nodiscard]] auto GetForward() const { return GetViewDirection(); }
|
||||
|
||||
[[nodiscard]] const Math::Matrix4f& GetViewMatrix() const { return m_view; }
|
||||
|
||||
[[nodiscard]] Math::Frustum GetFrustum() const
|
||||
{
|
||||
return {m_viewProjection};
|
||||
|
||||
Reference in New Issue
Block a user