mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
[libgdx] PhysicsConstraint, fixed incorrect subtraction.
This commit is contained in:
parent
3b02a3fbab
commit
48355c2e71
@ -197,7 +197,7 @@ public class PhysicsConstraint extends Constraint<PhysicsConstraint, PhysicsCons
|
|||||||
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;
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user