fix: remove scene view orbit roll

This commit is contained in:
2026-03-28 18:02:09 +08:00
parent 001e45bf6b
commit da486075e1
2 changed files with 10 additions and 3 deletions

View File

@@ -34,8 +34,11 @@ TEST(SceneViewportCameraController_Test, ApplyToMatchesComputedPositionAndForwar
controller.ApplyTo(*cameraObject.GetTransform());
EXPECT_TRUE(NearlyEqual(cameraObject.GetTransform()->GetPosition(), controller.GetPosition()));
const Vector3 localFocus = cameraObject.GetTransform()->InverseTransformPoint(controller.GetFocalPoint());
EXPECT_GT(localFocus.z, 0.0f);
EXPECT_TRUE(NearlyEqual(
cameraObject.GetTransform()->GetForward().Normalized(),
controller.GetForward(),
1e-3f));
EXPECT_GT(Vector3::Dot(cameraObject.GetTransform()->GetUp().Normalized(), Vector3::Up()), 0.0f);
}
TEST(SceneViewportCameraController_Test, ApplyInputUpdatesOrbitPanAndZoomState) {