Add interaction reach distance to player start entity and runtime scene build
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user