toSkeletonCoordinates method
Transforms the coordinates given in the SpineWidget coordinate system in position
to
the skeleton coordinate system. See the ik_following.dart
example how to use this
to move a bone based on user touch input.
Implementation
Offset toSkeletonCoordinates(Offset position) {
var x = position.dx;
var y = position.dy;
return Offset(x / _scaleX - _offsetX, y / _scaleY - _offsetY);
}