[csharp] Port of commit 48355c2: PhysicsConstraint, fixed incorrect subtraction.

This commit is contained in:
Harald Csaszar 2025-09-11 22:02:45 +02:00
parent 48355c2e71
commit c01994c803

View File

@ -205,7 +205,7 @@ namespace Spine {
m = t * p.massInverse;
e = p.strength;
}
float ax = p.wind * skeleton.windX - p.gravity * skeleton.gravityX;
float ax = p.wind * skeleton.windX + p.gravity * skeleton.gravityX;
float ay = p.wind * skeleton.windY + p.gravity * skeleton.gravityY;
float rs = rotateOffset, ss = scaleOffset, h = l / f;
if (Spine.Bone.yDown) ay = -ay;