Modify runtime controller context creation logic
This commit is contained in:
@@ -51,12 +51,13 @@ function createRuntimeControllerContext(
|
|||||||
feetPosition: Vec3,
|
feetPosition: Vec3,
|
||||||
shape: FirstPersonPlayerShape
|
shape: FirstPersonPlayerShape
|
||||||
) => boolean;
|
) => boolean;
|
||||||
} = {}
|
options.probePlayerGround?.(feetPosition, shape, maxDistance) ??
|
||||||
) {
|
|
||||||
const runtimeScene = buildRuntimeSceneFromDocument(
|
|
||||||
{
|
{
|
||||||
...createEmptySceneDocument({ name: "Pointer Lock Scene" }),
|
grounded: true,
|
||||||
entities: {
|
distance: 0,
|
||||||
|
normal: { x: 0, y: 1, z: 0 },
|
||||||
|
slopeDegrees: 0
|
||||||
|
},
|
||||||
[playerStart.id]: playerStart
|
[playerStart.id]: playerStart
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user