1248 Commits

Author SHA1 Message Date
Nathan Sweet
ec1d6028c0 [libgdx] Added skeleton.update(delta) to examples, even when physics is not used.
Missed one.
2024-01-18 10:32:37 -04:00
Nathan Sweet
55550c3490 [libgdx] Added skeleton.update(delta) to examples, even when physics is not used. 2024-01-18 09:57:20 -04:00
Harald Csaszar
11e6428586 [libgdx] Fixed PhysicsConstraint ignoring load scale. See commit c7a8123. 2024-01-11 17:13:17 +01:00
Nathan Sweet
92986788c1 [libgdx] Changed SimpleTest1 back to JSON. 2024-01-10 16:42:12 -04:00
Nathan Sweet
f656d98355 [libgdx] Fixed ScaleYTimeline. 2023-12-24 08:49:00 -04:00
Nathan Sweet
9cd5b3b044 [libgdx] Fixed shear causing physics to explode. 2023-12-05 14:11:42 -04:00
Mario Zechner
24edbcbf6c [libgdx] Added physics dragging example 2023-12-05 17:38:49 +01:00
Mario Zechner
cceaf31107 [libgdx] Add second physics test to tests 2023-12-05 15:12:43 +01:00
Mario Zechner
02773518b1 [ts] Fix physics! 2023-12-05 15:10:38 +01:00
Mario Zechner
2eb1033b65 Update example exports to 4.2.09-beta 2023-12-01 17:04:11 +01:00
Mario Zechner
fd0c20a2c7 Formatting 2023-11-29 00:44:00 +01:00
Mario Zechner
355a91de79 Merge branch '4.1' into 4.2-beta
# Conflicts:
#	spine-flutter/CHANGELOG.md
#	spine-flutter/lib/assets/libspine_flutter.wasm
#	spine-flutter/pubspec.yaml
#	spine-ts/package-lock.json
#	spine-ts/package.json
#	spine-ts/spine-canvas/package.json
#	spine-ts/spine-core/package.json
#	spine-ts/spine-phaser/package.json
#	spine-ts/spine-pixi/package.json
#	spine-ts/spine-player/package.json
#	spine-ts/spine-threejs/package.json
#	spine-ts/spine-webgl/package.json
2023-11-28 13:41:20 +01:00
Mario Zechner
c11afb283d [libgdx] Take skeleton scale into account when applying translation only IK constraint, see #2412 2023-11-28 13:25:06 +01:00
Nathan Sweet
f602177697 [libgdx] Fixed missing parenthesis when sorting physics constraints. 2023-11-24 22:57:19 -04:00
Nathan Sweet
855cae6953 [libgdx] Cleaned up Skeleton#sortPhysicsConstraint. 2023-11-22 11:44:02 -04:00
Nathan Sweet
1fcaba8c85 [libgdx] Fixed some physics constraint behavior when strength is 0. 2023-11-21 20:59:08 -04:00
Nathan Sweet
92a9b88e00 [libgdx] Javadoc for AnimationState setMixDuration. 2023-11-21 11:17:44 -04:00
Nathan Sweet
40aca11ccd [libgdx] Added alphaAttachmentThreshold. Fixed attachment timelines not being applied on higher tracks.
https://esotericsoftware.com/forum/d/25151
2023-11-21 10:51:46 -04:00
Nathan Sweet
ad263d48be [libgdx] Physics data loading fixes. 2023-11-16 12:21:14 -04:00
Nathan Sweet
7f89281d57 [libgdx] Added global physics timelines. 2023-11-12 19:46:41 -04:00
Nathan Sweet
c2906998ad Fixed physics reset leaving some state. 2023-11-12 11:01:22 -04:00
Nathan Sweet
1c3eaafb95 [libgdx] setToSetupPose doesn't reset physics. 2023-11-11 13:04:57 -04:00
Nathan Sweet
f7c8c6deb1 [libgdx] Physics reset timelines data loading. Fixed physics rotate/shear. 2023-11-10 21:17:41 -04:00
Nathan Sweet
7fae9e54ae [libgdx] Added physics reset timeline. 2023-11-10 17:22:43 -04:00
Nathan Sweet
e00fb24ea3 [libgdx] Float instead of boolean for physics properties. 2023-11-10 14:44:25 -04:00
Nathan Sweet
a4efb66d74 [libgdx] Fixed physics scaleX when the bone world scale is 0. 2023-11-10 08:37:33 -04:00
Nathan Sweet
4b7f5b0a96 Fixed sequence timelines being off by 1 frame in some cases.
closes EsotericSoftware/spine-editor#759
2023-11-08 21:14:07 -04:00
Nathan Sweet
24b307eac2 [libgdx] Removed debug physics checkbox from Skeleton Viewer. 2023-11-08 20:04:54 -04:00
Nathan Sweet
1d45f50ef3 [libgdx] Removed debug physics checkbox from Skeleton Viewer. 2023-11-08 19:04:57 -04:00
Nathan Sweet
4f58767740 [libgdx] Added bone and slot visibility nonessential data. 2023-11-08 18:46:21 -04:00
Nathan Sweet
d4452009ae [libgdx] Fixed physics massInverse from JSON. 2023-11-08 17:50:52 -04:00
Nathan Sweet
c30e5828d1 [libgdx] Load physics constraints from JSON. 2023-11-08 17:39:41 -04:00
Nathan Sweet
3541d005a7 [libgdx] Physics mass -> massInverse. Timeline is not inverted. 2023-11-08 14:15:49 -04:00
Nathan Sweet
043a8ea9ae [libgdx] Removed last bits of friction. 2023-11-08 09:28:45 -04:00
Nathan Sweet
e894b10802 [libgdx] Added skin color to nonessential data. 2023-11-08 09:28:31 -04:00
Nathan Sweet
63202d339b [libgdx] Physics improvements. 2023-11-07 20:17:09 -04:00
Nathan Sweet
251b368cbf [libgdx] Physics scale fixes. 2023-11-06 17:50:03 -04:00
Nathan Sweet
b40b40ffe1 [libgdx] Physics WIP. 2023-11-06 17:50:03 -04:00
Nathan Sweet
45b27b2907 [libgdx] Fixed physics shear. 2023-11-06 17:50:03 -04:00
Harald Csaszar
fa324fd838 [libgdx] Fix json TransformConstraint timeline mixShearY value being ignored. See commit c8f2370. 2023-10-26 23:02:45 +02:00
Nathan Sweet
ccb14771f8 [libgdx] Prefer SpineUtils over MathUtils. 2023-10-12 15:14:51 -04:00
Nathan Sweet
95ce8a5547 [libgdx] Binary, timelines, physics updates.
* Refactored timelines for code reuse.
* Added physics timelines.
* Improved physics behavior.
* Optimized binary format for ~7% size reduction.
* Added physics to binary format.
* Changed rotation normalization to ceil.
* Added bone icon as nonessential data.
2023-10-10 22:00:09 -04:00
Nathan Sweet
55bb8fc65a [libgdx] SkeletonViewer reload button retries last file if it failed. Smaller minimized size. 2023-10-08 14:13:10 -04:00
Nathan Sweet
008541ef8e [libgdx] Scale physics wind and gravity for translation, scale rotation for shear X. 2023-10-01 14:37:49 -04:00
Nathan Sweet
831ec8f622 [libgdx] Physics update.
Still WIP, but close.
2023-10-01 01:05:11 -04:00
Nathan Sweet
ae85b7223d [libgdx] Javadoc. 2023-10-01 00:11:48 -04:00
Nathan Sweet
4116af02fa [libgdx] Added a Physics enum to updateWorldTransform and Updateable#update to control how physics and other non-deterministic updates are applied. 2023-09-28 16:35:25 -04:00
Nathan Sweet
9678808aaf [libgdx] Added SkeletonActor# and SkeletonDrawable#updateWorldTransform for subclasses to override. 2023-09-28 16:35:25 -04:00
Nathan Sweet
a70e8f1e28 [libgdx] Added AnimationState#wasApplied. 2023-09-28 16:35:25 -04:00
Nathan Sweet
546d55a929 [libgdx] Fixed reading shearY mix for transform constraint timelines. 2023-09-28 16:35:25 -04:00