Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit c78323b

Browse files
committed
The most significant changes involve the update of the subproject commit in esotericsoftware and modifications to the Spine42 class. The subproject commit in esotericsoftware has been updated to a new version. In the Spine42 class, the updateWorldTransform method of the skeleton object and the render method have been modified to include Physics.update as an argument.
List of changes: 1. The subproject commit in esotericsoftware has been updated from 97a3156ded2d662207dfe680c38497ddc05919eb to be0bb549ac21db28386f09265132849643c1b0bf. This change indicates that the subproject is now pointing to a newer version of the code. 2. The import statement in the Spine42.java file has been extended to include `com.esotericsoftware.spine42.Skeleton.Physics`. This change allows the `Spine42` class to use the `Physics` class from the `Skeleton` package. 3. The `updateWorldTransform` method of the `skeleton` object in the `Spine42` class has been modified to take `Physics.update` as an argument. This change allows the `updateWorldTransform` method to use the `update` method from the `Physics` class. 4. The `render` method of the `Spine42` class has been modified in the same way as the `updateWorldTransform` method. The line `skeleton.updateWorldTransform();` has been replaced with `skeleton.updateWorldTransform(Physics.update);`. This change ensures that the `render` method also uses the `update` method from the `Physics` class.
1 parent e12139a commit c78323b

File tree

8 files changed

+12494
-3
lines changed

8 files changed

+12494
-3
lines changed

src/main/java/to/aloen/spine/Spine42.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import com.badlogic.gdx.utils.Array;
1212
import com.esotericsoftware.spine42.*;
1313
import com.esotericsoftware.spine42.AnimationState.TrackEntry;
14+
import com.esotericsoftware.spine42.Skeleton.Physics;
1415
import com.esotericsoftware.spine42.utils.TwoColorPolygonBatch;
1516
import javafx.application.Platform;
1617
import javafx.beans.value.ChangeListener;
@@ -149,7 +150,7 @@ private boolean loadSkeleton() {
149150
}
150151

151152
skeleton = new Skeleton(skeletonData);
152-
skeleton.updateWorldTransform();
153+
skeleton.updateWorldTransform(Physics.update);
153154
skeleton.setToSetupPose();
154155
skeleton.setPosition(X.get(), Y.get());
155156

@@ -249,7 +250,7 @@ public void create() {
249250
public void render() {
250251
state.update(Gdx.graphics.getDeltaTime());
251252
state.apply(skeleton);
252-
skeleton.updateWorldTransform();
253+
skeleton.updateWorldTransform(Physics.update);
253254

254255
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
255256
Gdx.graphics.setTitle(STR."FPS : \{Gdx.graphics.getFramesPerSecond()}");

0 commit comments

Comments
 (0)