[csharp][monogame] Fixed yDown branch of previous commit 89441ca leading to upward gravity. See #2729.

This commit is contained in:
Harald Csaszar 2025-02-05 19:25:06 +01:00
parent dcf19f7021
commit 095a5d43e4

View File

@ -175,7 +175,7 @@ namespace Spine {
}
if (a >= t) {
d = (float)Math.Pow(damping, 60 * t);
float m = massInverse * t, e = strength, w = wind * f * skeleton.ScaleX, g = (Bone.yDown ? -gravity : gravity) * f * skeleton.ScaleY;
float m = massInverse * t, e = strength, w = wind * f * skeleton.ScaleX, g = gravity * f * skeleton.ScaleY;
do {
if (x) {
xVelocity += (w - xOffset * e) * m;