Skip to content

Commit

Permalink
fixes issues/31
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCodeTherapy committed Jul 15, 2023
1 parent e902b1c commit a9c414e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/character/controller-local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a9c414e

Please sign in to comment.