Mouse coordinates are good - checked!
I log many parameters in spine.js and in function "aabbCompute"
aabbCompute: function () {
var polygons = this.polygons;
var minX = Number.MAX_VALUE, minY = Number.MAX_VALUE, maxX = -Number.MAX_VALUE, maxY = -Number.MAX_VALUE;
for (var i = 0, n = polygons.length; i < n; i++) {
var vertices = polygons[i];
[b]log (vertices.length); // value is 0[/b]
for (var ii = 0, nn = vertices.length; ii < nn; ii += 2) {
var x = vertices[ii];
....
....
vertices.length is always = 0 . In function SkeletonBounds.update is checked doog slot with my boundingbox but problem is probably in aabbCompute beacuse vertices.length is always 0.
For javascript I use Spine 3.1.08. Bounding box is created properly and have 4 vertices. Maybe for JavaScript is other requirement for boundingbox creation?
I dont know where is a bug but vertices.length is always = 0 looks strange
I do it same in LibGDX and working good but in JavaScript doesn't work :/