fix: remove scene view orbit roll
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user