Add interaction reach distance to player start entity and runtime scene build

This commit is contained in:
2026-04-26 23:02:00 +02:00
parent 7768ff22eb
commit ce0ebace35
2 changed files with 9 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ import {
createCameraRigPlayerTargetRef,
createCameraRigWorldPointTargetRef,
DEFAULT_PLAYER_START_GAMEPAD_BINDINGS,
DEFAULT_PLAYER_START_INTERACTION_REACH_METERS,
DEFAULT_PLAYER_START_KEYBOARD_BINDINGS,
createNpcAlwaysPresence,
createNpcEntity,
@@ -3299,6 +3300,11 @@ function readPlayerStartEntity(value: unknown, label: string): EntityInstance {
value.navigationMode,
`${label}.navigationMode`
),
interactionReachMeters: readOptionalPositiveFiniteNumber(
value.interactionReachMeters,
`${label}.interactionReachMeters`,
DEFAULT_PLAYER_START_INTERACTION_REACH_METERS
),
movementTemplate: readPlayerStartMovementTemplate(
value.movementTemplate,
`${label}.movementTemplate`