From a9c414eb4d75d825c3f39732150988f3c8231f98 Mon Sep 17 00:00:00 2001 From: TheCodeTherapy Date: Sat, 15 Jul 2023 19:54:51 +0100 Subject: [PATCH] fixes issues/31 --- packages/core/src/character/controller-local.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/src/character/controller-local.ts b/packages/core/src/character/controller-local.ts index da6741f..b7b52df 100644 --- a/packages/core/src/character/controller-local.ts +++ b/packages/core/src/character/controller-local.ts @@ -223,7 +223,9 @@ export class LocalController { resetPosition(): void { if (!this.model?.mesh) return; + this.characterVelocity.y = 0; this.model.mesh.position.y = 5; + this.characterOnGround = false; } update(inputManager: InputManager, cameraManager: CameraManager, runTime: RunTimeManager): void {