Update runtime interaction system test to include additional player movement properties
This commit is contained in:
@@ -17,6 +17,8 @@ import { RuntimeInteractionSystem } from "../../src/runtime-three/runtime-intera
|
|||||||
import type { RuntimeSceneDefinition } from "../../src/runtime-three/runtime-scene-build";
|
import type { RuntimeSceneDefinition } from "../../src/runtime-three/runtime-scene-build";
|
||||||
|
|
||||||
function createRuntimeSceneFixture(): RuntimeSceneDefinition {
|
function createRuntimeSceneFixture(): RuntimeSceneDefinition {
|
||||||
|
const movementTemplate = createPlayerStartMovementTemplate();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
world: {
|
world: {
|
||||||
...createDefaultWorldSettings(),
|
...createDefaultWorldSettings(),
|
||||||
@@ -134,8 +136,11 @@ function createRuntimeSceneFixture(): RuntimeSceneDefinition {
|
|||||||
},
|
},
|
||||||
playerMovement: {
|
playerMovement: {
|
||||||
templateKind: "default",
|
templateKind: "default",
|
||||||
moveSpeed: createPlayerStartMovementTemplate().moveSpeed,
|
moveSpeed: movementTemplate.moveSpeed,
|
||||||
capabilities: createPlayerStartMovementTemplate().capabilities
|
capabilities: movementTemplate.capabilities,
|
||||||
|
jump: movementTemplate.jump,
|
||||||
|
sprint: movementTemplate.sprint,
|
||||||
|
crouch: movementTemplate.crouch
|
||||||
},
|
},
|
||||||
navigationMode: "thirdPerson",
|
navigationMode: "thirdPerson",
|
||||||
spawn: {
|
spawn: {
|
||||||
|
|||||||
Reference in New Issue
Block a user