From ad7ce3c7257bc78ccd2092712cab6a1e6e42d7d3 Mon Sep 17 00:00:00 2001 From: D8H Date: Sun, 19 Jan 2025 01:00:43 +0100 Subject: [PATCH] [3D character] Fix the "is falling" condition from being true when the character is going up (#7325) --- .../Physics3DBehavior/PhysicsCharacter3DRuntimeBehavior.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extensions/Physics3DBehavior/PhysicsCharacter3DRuntimeBehavior.ts b/Extensions/Physics3DBehavior/PhysicsCharacter3DRuntimeBehavior.ts index 3a394e2e0703..c828e6fb79e8 100644 --- a/Extensions/Physics3DBehavior/PhysicsCharacter3DRuntimeBehavior.ts +++ b/Extensions/Physics3DBehavior/PhysicsCharacter3DRuntimeBehavior.ts @@ -1274,7 +1274,7 @@ namespace gdjs { */ isFalling(): boolean { return ( - !this.isOnFloor() || + this.isFallingWithoutJumping() || (this.isJumping() && this._currentFallSpeed > this._currentJumpSpeed) ); }