[spine-csharp] Fixed Skeleton.PhysicsRotate passing r instead of x. Closes #2512.

This commit is contained in:
Harald Csaszar 2024-04-29 17:32:52 +02:00
parent 98706929d0
commit c65f73e873
2 changed files with 2 additions and 2 deletions

View File

@ -489,7 +489,7 @@ namespace Spine {
public void PhysicsRotate (float x, float y, float degrees) { public void PhysicsRotate (float x, float y, float degrees) {
PhysicsConstraint[] physicsConstraints = this.physicsConstraints.Items; PhysicsConstraint[] physicsConstraints = this.physicsConstraints.Items;
for (int i = 0, n = this.physicsConstraints.Count; i < n; i++) for (int i = 0, n = this.physicsConstraints.Count; i < n; i++)
physicsConstraints[i].Rotate(r, y, degrees); physicsConstraints[i].Rotate(x, y, degrees);
} }
/// <summary>Increments the skeleton's <see cref="time"/>.</summary> /// <summary>Increments the skeleton's <see cref="time"/>.</summary>

View File

@ -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.19", "version": "4.2.20",
"unity": "2018.3", "unity": "2018.3",
"author": { "author": {
"name": "Esoteric Software", "name": "Esoteric Software",