mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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;
|
uy = by;
|
||||||
}
|
}
|
||||||
if (a >= t) {
|
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);
|
float d = (float)Math.Pow(damping, 60 * t);
|
||||||
do {
|
do {
|
||||||
if (x) {
|
if (x) {
|
||||||
@ -219,7 +219,7 @@ namespace Spine {
|
|||||||
}
|
}
|
||||||
a = this.remaining;
|
a = this.remaining;
|
||||||
if (a >= t) {
|
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;
|
float d = (float)Math.Pow(damping, 60 * t), h = l / f;
|
||||||
while (true) {
|
while (true) {
|
||||||
a -= t;
|
a -= t;
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "com.esotericsoftware.spine.spine-csharp",
|
"name": "com.esotericsoftware.spine.spine-csharp",
|
||||||
"displayName": "spine-csharp Runtime",
|
"displayName": "spine-csharp Runtime",
|
||||||
"description": "This plugin provides the spine-csharp core runtime.",
|
"description": "This plugin provides the spine-csharp core runtime.",
|
||||||
"version": "4.2.18",
|
"version": "4.2.19",
|
||||||
"unity": "2018.3",
|
"unity": "2018.3",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Esoteric Software",
|
"name": "Esoteric Software",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user