From b8ae2ea389f6f03680adcd3b06e12191c77c5a2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Davy=20H=C3=A9lard?= Date: Sat, 18 Jan 2025 20:20:16 +0100 Subject: [PATCH] [3D character] Fix the "is falling" condition from being true when the character is going up --- .../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) ); }