diff --git a/tests/domain/runtime-interaction-system.test.ts b/tests/domain/runtime-interaction-system.test.ts index bd9a4e7f..bac08cdd 100644 --- a/tests/domain/runtime-interaction-system.test.ts +++ b/tests/domain/runtime-interaction-system.test.ts @@ -127,6 +127,7 @@ function createRuntimeSceneFixture(): RuntimeSceneDefinition { height: 1.8, eyeHeight: 1.6 }, + navigationMode: "thirdPerson", spawn: { source: "fallback", entityId: null, diff --git a/tests/domain/runtime-scene-validation.test.ts b/tests/domain/runtime-scene-validation.test.ts index 948b1449..d193486b 100644 --- a/tests/domain/runtime-scene-validation.test.ts +++ b/tests/domain/runtime-scene-validation.test.ts @@ -28,7 +28,7 @@ describe("validateRuntimeSceneBuild", () => { } }, { - navigationMode: "orbitVisitor", + navigationMode: "thirdPerson", loadedModelAssets: {} } ); @@ -57,7 +57,7 @@ describe("validateRuntimeSceneBuild", () => { } }, { - navigationMode: "orbitVisitor", + navigationMode: "thirdPerson", loadedModelAssets: { [asset.id]: loadedAsset } @@ -88,7 +88,7 @@ describe("validateRuntimeSceneBuild", () => { } }, { - navigationMode: "orbitVisitor", + navigationMode: "thirdPerson", loadedModelAssets: { [asset.id]: loadedAsset } diff --git a/tests/domain/scene-document-validation.test.ts b/tests/domain/scene-document-validation.test.ts index dfa4f502..8114ca90 100644 --- a/tests/domain/scene-document-validation.test.ts +++ b/tests/domain/scene-document-validation.test.ts @@ -115,6 +115,7 @@ describe("validateSceneDocument", () => { z: 0 }, yawDegrees: Number.NaN, + navigationMode: "firstPerson", collider: { mode: "capsule", eyeHeight: 3, diff --git a/tests/unit/first-person-navigation-controller.test.ts b/tests/unit/first-person-navigation-controller.test.ts index 09274ff8..bb6b650a 100644 --- a/tests/unit/first-person-navigation-controller.test.ts +++ b/tests/unit/first-person-navigation-controller.test.ts @@ -33,6 +33,9 @@ function createRuntimeControllerContext() { inWater: false, inFog: false }), + resolveThirdPersonCameraCollision: (_pivot, desiredCameraPosition) => ({ + ...desiredCameraPosition + }), setRuntimeMessage: vi.fn(), setFirstPersonTelemetry: vi.fn() } diff --git a/tests/unit/runtime-host.test.ts b/tests/unit/runtime-host.test.ts index f9bcb0c1..2f9e4273 100644 --- a/tests/unit/runtime-host.test.ts +++ b/tests/unit/runtime-host.test.ts @@ -59,7 +59,7 @@ describe("RuntimeHost", () => { }); host.loadScene(runtimeScene); - host.setNavigationMode("orbitVisitor"); + host.setNavigationMode("thirdPerson"); expect(sceneLoadStates).toEqual([ { @@ -77,7 +77,7 @@ describe("RuntimeHost", () => { message: null }); expect(runtimeMessages).toContain( - "Orbit Visitor active. Drag to orbit around the scene and use the mouse wheel to zoom." + "Third Person active. Drag to orbit the camera, use WASD to move, and scroll to zoom." ); });