From 1d1a6801d508f7da75312ee2ebed932f0329077a Mon Sep 17 00:00:00 2001 From: Davide Tantillo Date: Thu, 6 Feb 2025 10:15:29 +0100 Subject: [PATCH] [haxe] Fixed yDown branch of previous commit 89441ca leading to upward gravity. See #2729. --- spine-haxe/spine-haxe/spine/PhysicsConstraint.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-haxe/spine-haxe/spine/PhysicsConstraint.hx b/spine-haxe/spine-haxe/spine/PhysicsConstraint.hx index 61ddf6fe0..125ec44ae 100644 --- a/spine-haxe/spine-haxe/spine/PhysicsConstraint.hx +++ b/spine-haxe/spine-haxe/spine/PhysicsConstraint.hx @@ -159,7 +159,7 @@ class PhysicsConstraint implements Updatable { var m:Float = massInverse * t, e:Float = strength, w:Float = wind * f * skeleton.scaleX, - g:Float = (Bone.yDown ? -gravity : gravity) * f * skeleton.scaleY; + g:Float = gravity * f * skeleton.scaleY; do { if (x) { xVelocity += (w - xOffset * e) * m;