update method

void update(
  1. Skeleton skeleton,
  2. bool updateAabb
)

Clears any previous polygons, finds all visible bounding box attachments, and computes the world vertices for each bounding box's polygon.

skeleton The skeleton. updateAabb If true, the axis aligned bounding box containing all the polygons is computed. If false, the SkeletonBounds AABB methods will always return true.

Implementation

void update(Skeleton skeleton, bool updateAabb) {
  SpineBindings.bindings.spine_skeleton_bounds_update(_ptr, skeleton.nativePtr.cast(), updateAabb);
}