setPosition method

void setPosition(
  1. double x,
  2. double y
)

Sets the skeleton X and Y position, which is added to the root bone worldX and worldY position.

Bones that do not inherit translation are still affected by this property.

Implementation

void setPosition(double x, double y) {
  _bindings.spine_skeleton_set_position(_skeleton, x, y);
}