106 Commits

Author SHA1 Message Date
Harald Csaszar
7d57e7d343 [csharp] Port of earlier clipping cleanup commit 485de74: SkeletonClipping.ClipTriangles clean up. 2024-06-10 18:44:59 +02:00
Harald Csaszar
c6a01d7a5f [csharp][unity] Skeleton.getBounds() applies clipping, see #2515. Port of commits b043e5c, 637321a and 2049bed. 2024-05-02 20:22:50 +02:00
Harald Csaszar
6118a5f704 [csharp] Port of commit cb48737: Fixed constraint copy constructors references the wrong bones. Closes #2511. 2024-04-29 19:09:45 +02:00
Harald Csaszar
c65f73e873 [spine-csharp] Fixed Skeleton.PhysicsRotate passing r instead of x. Closes #2512. 2024-04-29 17:32:52 +02:00
Harald Csaszar
5631eb9750 [csharp] Fixed Bone.yDown being ignored on 4.2 branch. See #1386 (regression). 2024-03-28 12:32:03 +01:00
Harald Csaszar
8e56a6c920 [csharp] Port of commit 1dbbfda: Added skeleton reference scale. Fixed leftover gravity and wind timeline scale. 2024-03-04 16:28:51 +01:00
Harald Csaszar
05e37fc738 [csharp] Port of commit e177661. Improved physic constraint rotate(). 2024-01-22 17:59:33 +01:00
Harald Csaszar
b5d1aea3c5 [csharp] Port of commit 2563c7c. Added physics methods to apply translation and rotation forces. 2024-01-18 18:41:14 +01:00
Harald Csaszar
357ad6ffd9 [csharp] Port of commits 855cae69 and f602177. Fixed missing parenthesis when sorting physics constraints. 2023-11-27 16:56:00 +01:00
Harald Csaszar
fe53638f69 [csharp] Ported 4.2-beta physics. 2023-11-17 17:18:18 +01:00
Mario Zechner
74b7882efa Merge branch '4.1' into 4.2-beta 2023-07-31 13:29:29 +02:00
Mario Zechner
4047f1ba07 Updated license headers. 2023-07-31 13:29:16 +02:00
Harald Csaszar
7de6140875 Merge branch '4.1' into 4.2-beta 2023-01-10 13:21:46 +01:00
Harald Csaszar
01b8c06800 [csharp] Code cleanup: replaced var with explicit type names. 2023-01-10 13:03:56 +01:00
Harald Csaszar
db39be9b89 [csharp] Port of commit 0c269a07: "Spring constraint -> physics constraint.", added missing documentation lines. 2022-12-19 12:56:53 +01:00
Harald Csaszar
522e985de8 Reverted removal commit only intended for 4.1 "[csharp] Port of commit 9271eb23 "Removed spring constraints. The physics features have been moved to 4.2.""
This reverts commit f0e152a063399cba6440bc23fb7f1bc46b68025c.
Added previously missing getter SkeletonData.SpringConstraints, fixed Skeleton.SpringConstraints.
2022-12-19 12:09:24 +01:00
Harald Csaszar
c0e0842520 Merge branch '4.1' into 4.2-beta 2022-12-19 11:39:05 +01:00
Harald Csaszar
f0e152a063 [csharp] Port of commit 9271eb23 "Removed spring constraints. The physics features have been moved to 4.2." 2022-12-19 11:33:29 +01:00
Harald Csaszar
b693802311 Merge branch '4.1' into 4.2-beta 2022-12-14 17:45:18 +01:00
Harald Csaszar
1624960dae [csharp] Minor improvement of documentation. 2022-12-14 12:17:25 +01:00
Harald Csaszar
34a7eeb56d [csharp] Port TransformConstraint changes. See #2150. Changed Skeleton scaleX and scaleY from private to internal. 2022-09-12 11:46:34 +02:00
Harald Csaszar
091ece0aa3 Merge branch '4.0' into 4.1-beta 2022-01-26 15:27:59 +01:00
Harald Csaszar
4cbae2411a [unity] Minor: removed a commented-out leftover line of code. 2022-01-26 15:25:47 +01:00
Harald Csaszar
3250e74e26 [csharp][unity] Port sequence attachment. See #1956. Also port of other 4.1-beta branch changes compared to 4.0. 2021-11-03 15:26:22 +01:00
Nathan Sweet
96a998b82d Spine Runtimes License Agreement update (September 24, 2021). 2021-09-24 18:18:19 -10:00
Nathan Sweet
dc9a6ebe7f [as3][c][cpp][csharp][libgdx][lua][ts] Fixed loading transform constraint timelines from JSON data.
* Fixed SkeletonJson not allocating enough memory for curves (maximum of 6 curves/key, not 4). Fixes email: FMfcgzGkbDfvckWcFxWlsTWzFhMXsTDw
* Removed SkeletonData and Skeleton methods: findBoneIndex, findSlotIndex. Bones and slots have an index field that should be used instead.
* Removed SkeletonData and Skeleton methods: find*ConstraintIndex. Only SkeletonJson needed these, they don't need to be in the public API.
* Used a local for number of frames where it was used many times.
2021-09-12 18:15:19 -06:00
Mario Zechner
0bf2fb6059 Revert "Formatting errors to test GH Action."
This reverts commit 1800b235458b331b87bed27ce5aee55575163fc7.
2021-08-18 21:21:09 +02:00
Mario Zechner
1800b23545 Formatting errors to test GH Action. 2021-08-18 21:15:37 +02:00
Mario Zechner
d12b15ca8d [csharp] Format all source code using formatters/.editorconfig 2021-08-18 18:59:53 +02:00
Nathan Sweet
963da7561e [csharp] Code style update.
* `else` on same line as `if` brace.
* `var` only when the type is shown.
* Removed unnecessarily locals, eg `var events = this.events; var eventsItems = events.Items;`.
* Don't indent `case`.
* ExposedList for EventQueue just so iteration can use array indexing.
* EventQueue, inner members (struct/enum) after methods.
* No braces for single line `if/else/for`.
* Removed comments noting ref impl code, eg `// abc.setSize(xyz);`.
* Removed comments that didn't add to what the code shows, eg `// Pooling`.
* Removed comments not in ref impl about implementation details, eg `// nextTrackLast == -1 ...`.
* Removed commented code we are not using.
* Use local with list.Items when iterating.
2021-05-31 01:26:41 -04:00
Harald Csaszar
7b1469c32b [csharp] Ported commit 4f73fbb, "Fixed applying a constraint reverting changes from other constraints.", see #1896. 2021-05-27 18:35:52 +02:00
Harald Csaszar
7ef2fc96db [csharp] Porting of commits dbd90ca, da1b280, 10d5a91 and e14db0e (includes 4.0 format changes). Fixed errors in color parsing introduced by previous porting 4.0 commit.
* Added separate X and Y for transform constraint translate and scale mix.
* Renamed `xxxMix` to `mixXxx` to avoid names like `scaleXMix`.
* Added separate X and Y sliders for path constraint translate mix.
* Added a proportional spacing mode to path constraints.
* Fixed path constraint when a parent bone of the path is scaled.
2020-11-16 21:01:11 +01:00
Harald Csaszar
d2529d410b [csharp] Porting of major 4.0-beta runtime changes. Remaining Unity assets will be updated in separate commit. See #1796. 2020-10-22 14:44:13 +02:00
badlogic
934bec56b7 Merge branch '3.8' into 3.9-beta 2019-12-20 12:27:35 +01:00
badlogic
b67bf992a0 Single bone IK fix and license header update. Closes #1580, closes #1581. 2019-12-20 12:20:46 +01:00
Harald Csaszar
f2a8c9a3c1 [unity][csharp] API Cleanup: removed many redundant extension methods that are now obsolete with Skin and Attachment API of 3.8. Closes #1557. Fixed an error in Skin where Skin.setAttachment() did not work as expected (See #1485). C# implementation is different to ref-impl here as struct keys do not allow for changing key.Attachment later without removing and readding the entry to the dictionary. 2019-11-29 12:31:39 +01:00
NathanSweet
45362e60bf [all] Source clean up, formatting, and tabs for indentation. 2019-08-28 17:36:51 +02:00
NathanSweet
842dffbd83 [all] Source clean up, formatting, and tabs for indentation. 2019-08-27 15:57:14 +02:00
badlogic
73fc7867d8 [csharp] Made Skeleton.scaleX/scaleY private, Skeleton.ScaleY getter takes Bone.yDown into account. Fixes #1386. 2019-06-24 14:12:18 +02:00
Harald Csaszar
505719c1f1 [unity] Added soft IK support. See #1383. 2019-06-20 10:19:17 +02:00
Harald Csaszar
1d0cce3707 [csharp] Port of more skin API changes, commits: 659c390, 7ee57dc, b3c2170, b71970a, 42c1c4a, 70cdf2d. See #841 2019-06-04 18:24:40 +02:00
Harald Csaszar
4a684f63bf [csharp] Ported more skin API changes of commits eae88a0 and b87ff73 (Added Mesh#newLinkedMesh(), replaced VertexAttachment#applyDeform with VertexAttachment#deformAttachment), see #841. 2019-05-31 21:25:46 +02:00
Harald Csaszar
c63bc7b88f [csharp] See #1346: Port bone/constraint association with skins. Also contains second (and final) partial port of commit ff5b854. Adapted spine-unity for skin changes. Fixed a bug in Skin setter property. 2019-05-22 18:37:57 +02:00
Harald Csaszar
0791df8c4c [csharp] Ported skin API changes part2, see #841. Port of changes of commit ff5b854860f639af1c111596bc407cbe12124d1e. 2019-05-20 11:43:00 +02:00
Harald Csaszar
a009c35b82 [csharp] Ported skin API changes, see #841. 2019-05-17 13:54:56 +02:00
badlogic
7f7e5f0fec Updated license headers and LICENSE files. 2019-05-02 11:38:19 +02:00
Harald Csaszar
f186a83fca [csharp] Unified all line endings of files in spine-csharp to lf. 2018-12-24 12:43:06 +01:00
Harald Csaszar
8c47b66dc0 [csharp] Added missing default initialization of scaleX and scaleY parameters which caused incorrectly placed bones with PathConstraints in some cases. Fixes #1222
(cherry picked from commit 651416c620f13beb4ecf98de0a62c1466bc2afaf)
2018-12-15 23:01:01 +01:00
NathanSweet
237f1fd968 [csharp] Removed unnecessary porting differences. 2018-12-13 09:50:19 +01:00
pharan
dec9b1eb5d
[csharp] Skeleton.UpdateWorldTransform(Bone) + docs 2018-12-10 02:14:33 +08:00