SkeletonBounds
spine.SkeletonBounds (Class)
Collects each visible {@link BoundingBoxAttachment} and computes the world vertices for its polygon. The polygon vertices are
provided along with convenience methods for doing hit detection.
Instance Members
Clears any previous polygons, finds all visible bounding box attachments, and computes the world vertices for each bounding
box's polygon.
Name |
Type |
Description |
skeleton |
Skeleton |
|
updateAabb |
Bool |
If true, the axis aligned bounding box containing all the polygons is computed. If false, the SkeletonBounds AABB methods will always return true. |
Returns true if the axis aligned bounding box contains the point.
Returns true if the axis aligned bounding box intersects the line segment.
Returns true if the axis aligned bounding box intersects the axis aligned bounding box of the specified bounds.
Returns the first bounding box attachment that contains the point, or null. When doing many checks, it is usually more
efficient to only call this method if {@link #aabbContainsPoint(float, float)} returns true.
Returns true if the polygon contains the point.
Returns the first bounding box attachment that contains any part of the line segment, or null. When doing many checks, it
is usually more efficient to only call this method if {@link #aabbIntersectsSegment(float, float, float, float)} returns
true.
Returns true if the polygon contains any part of the line segment.
The left edge of the axis aligned bounding box.
The bottom edge of the axis aligned bounding box.
The right edge of the axis aligned bounding box.
The top edge of the axis aligned bounding box.
The width of the axis aligned bounding box.
The height of the axis aligned bounding box.
The visible bounding boxes.
The world vertices for the bounding box polygons.
Returns the polygon for the specified bounding box, or null.
Private Members