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, templateKind: movement.templateKind,
moveSpeed: movement.moveSpeed, moveSpeed: movement.moveSpeed,
maxSpeed: movement.maxSpeed, maxSpeed: movement.maxSpeed,
maxStepHeight: movement.maxStepHeight,
capabilities: { capabilities: {
jump: movement.capabilities.jump, jump: movement.capabilities.jump,
sprint: movement.capabilities.sprint, sprint: movement.capabilities.sprint,

View File

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

View File

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