Add maxStepHeight to RuntimePlayerMovement and related controllers

This commit is contained in:
2026-04-11 20:59:15 +02:00
parent d5c33c57ec
commit abd2c8ce3a
3 changed files with 5 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ function cloneRuntimePlayerMovement(
templateKind: movement.templateKind,
moveSpeed: movement.moveSpeed,
maxSpeed: movement.maxSpeed,
maxStepHeight: movement.maxStepHeight,
capabilities: {
jump: movement.capabilities.jump,
sprint: movement.capabilities.sprint,

View File

@@ -116,6 +116,7 @@ export interface RuntimePlayerMovement {
templateKind: PlayerStartMovementTemplate["kind"];
moveSpeed: number;
maxSpeed: number;
maxStepHeight: number;
capabilities: PlayerStartMovementCapabilities;
jump: PlayerStartJumpSettings;
sprint: PlayerStartSprintSettings;
@@ -312,6 +313,7 @@ function cloneRuntimePlayerMovement(
templateKind: movement.templateKind,
moveSpeed: movement.moveSpeed,
maxSpeed: movement.maxSpeed,
maxStepHeight: movement.maxStepHeight,
capabilities: clonePlayerStartMovementCapabilities(movement.capabilities),
jump: clonePlayerStartJumpSettings(movement.jump),
sprint: clonePlayerStartSprintSettings(movement.sprint),
@@ -328,6 +330,7 @@ function buildRuntimePlayerMovement(
templateKind: resolvedTemplate.kind,
moveSpeed: resolvedTemplate.moveSpeed,
maxSpeed: resolvedTemplate.maxSpeed,
maxStepHeight: resolvedTemplate.maxStepHeight,
capabilities: clonePlayerStartMovementCapabilities(
resolvedTemplate.capabilities
),

View File

@@ -65,6 +65,7 @@ function cloneRuntimePlayerMovement(
templateKind: movement.templateKind,
moveSpeed: movement.moveSpeed,
maxSpeed: movement.maxSpeed,
maxStepHeight: movement.maxStepHeight,
capabilities: {
jump: movement.capabilities.jump,
sprint: movement.capabilities.sprint,