mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-15 03:21:35 +08:00
Update Example: Positioning of Skeleton
Its better to set X and Y of the skeleton then setting X and Y of the root bone.
This commit is contained in:
parent
ab5b88f73f
commit
0e17a170b6
@ -78,8 +78,8 @@ namespace Spine {
|
||||
state.AddAnimation("jump", false);
|
||||
state.AddAnimation("walk", true);
|
||||
|
||||
skeleton.RootBone.X = 320;
|
||||
skeleton.RootBone.Y = 440;
|
||||
skeleton.X = 320;
|
||||
skeleton.Y = 440;
|
||||
skeleton.UpdateWorldTransform();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user