mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[csharp] Port of commit 48355c2: PhysicsConstraint, fixed incorrect subtraction.
This commit is contained in:
parent
48355c2e71
commit
c01994c803
@ -205,7 +205,7 @@ namespace Spine {
|
|||||||
m = t * p.massInverse;
|
m = t * p.massInverse;
|
||||||
e = p.strength;
|
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 ay = p.wind * skeleton.windY + p.gravity * skeleton.gravityY;
|
||||||
float rs = rotateOffset, ss = scaleOffset, h = l / f;
|
float rs = rotateOffset, ss = scaleOffset, h = l / f;
|
||||||
if (Spine.Bone.yDown) ay = -ay;
|
if (Spine.Bone.yDown) ay = -ay;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user