getVertices method

Float32List getVertices()

The vertex positions in the bone's coordinate system. For a non-weighted attachment, the values are x,y entries for each vertex. For a weighted attachment, the values are x,y,weight entries for each bone affecting each vertex.

Implementation

Float32List getVertices() {
  final num = _bindings.spine_vertex_attachment_get_num_vertices(_attachment.cast());
  final vertices = _bindings.spine_vertex_attachment_get_vertices(_attachment.cast());
  return vertices.asTypedList(num);
}