mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +08:00
[csharp] Port of commit e78095e: Gravity takes yDown in consideration.
This commit is contained in:
parent
79db4fc912
commit
36a1a1742b
@ -170,7 +170,7 @@ namespace Spine {
|
||||
uy = by;
|
||||
}
|
||||
if (a >= t) {
|
||||
float m = massInverse * t, e = strength, w = wind * f, g = gravity * f;
|
||||
float m = massInverse * t, e = strength, w = wind * f, g = (Bone.yDown ? -gravity : gravity) * f;
|
||||
float d = (float)Math.Pow(damping, 60 * t);
|
||||
do {
|
||||
if (x) {
|
||||
@ -219,7 +219,7 @@ namespace Spine {
|
||||
}
|
||||
a = this.remaining;
|
||||
if (a >= t) {
|
||||
float m = massInverse * t, e = strength, w = wind, g = gravity;
|
||||
float m = massInverse * t, e = strength, w = wind, g = (Bone.yDown ? -gravity : gravity);
|
||||
float d = (float)Math.Pow(damping, 60 * t), h = l / f;
|
||||
while (true) {
|
||||
a -= t;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "com.esotericsoftware.spine.spine-csharp",
|
||||
"displayName": "spine-csharp Runtime",
|
||||
"description": "This plugin provides the spine-csharp core runtime.",
|
||||
"version": "4.2.18",
|
||||
"version": "4.2.19",
|
||||
"unity": "2018.3",
|
||||
"author": {
|
||||
"name": "Esoteric Software",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user