Shinhu

worldToLocal (2-tuple world): 2-tuple
Transforms a point from world coordinates to the bone's local coordinates.
It says the type of parameter and the output is tuple, but it's more like Vector class in spine.webgl.Vector2.

I think this is error and this needs a fix.

you can also see one of demo source code to check why this is wrong : https://github.com/EsotericSoftware/spine-runtimes/blob/48470a4b1634c99cb245e6ba15f1f937e949a1a1/spine-ts/webgl/demos/stretchyman.js#L97
Shinhu
  • Сообщения: 20

Nate

A tuple just means it's a container for two values. The API reference applies to all of the Spine Runtimes, so the exact type of the tuple may vary.
Аватара пользователя
Nate

Nate
  • Сообщения: 10739


Вернуться в Bugs