biandeyue
Here you can find the JSON format documentation. As explained in the "bounding box attachment attributes" section, the vertices
field contains:
For each vertex either an x,y pair or, for a weighted bounding box, first the number of bones which influence the vertex, then for that many bones: bone index, bind position X, bind position Y, weight. A bounding box is weighted if the number of vertices > vertex count.
What do you use to get the vertex position? To get the vertex position, you can use computeWorldVertices
since a BoundingBoxAttachment
is simply a VertexAttachment
. Make sure to provide the worldVerticesLength
parameter, which contains the actual number of vertices.