BoundingBoxAttachment class
An attachment with vertices that make up a polygon. Can be used for hit detection, creating physics bodies, spawning particle effects, and more.
See SkeletonBounds
and Bounding boxes in the Spine User
Guide.
- Inheritance
-
- Object
- Attachment<
spine_bounding_box_attachment> - VertexAttachment<
spine_bounding_box_attachment> - BoundingBoxAttachment
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
computeWorldVertices(
Slot slot) → List< double> -
Transforms and returns the attachment's local getVertices to world coordinates. If the slot's
Slot.getDeform
is not empty, it is used to deform the vertices. See World transforms in the Spine Runtimes Guide.inherited -
copy(
) → Attachment< Pointer< NativeType> > -
Returns a copy of the attachment. Copied attachments need to be disposed manually
when no longer in use via the dispose method.
inherited
-
dispose(
) → void -
inherited
-
getBones(
) → Int32List -
The bones which affect the getVertices. The array entries are, for each vertex, the number of bones affecting
the vertex followed by that many bone indices, which is the index of the bone in Skeleton.getBones. Will be null
if this attachment has no weights.
inherited
-
getColor(
) → Color - The color of the bounding box as it was in Spine, or a default color if nonessential data was not exported. Bounding boxes are not usually rendered at runtime.
-
getName(
) → String -
The attachment's name.
inherited
-
getTimelineAttachment(
) → Attachment< Pointer< ?NativeType> > -
Timelines for the timeline attachment are also applied to this attachment. May return
null
if not attachment-specific timelines should be applied.inherited -
getType(
) → AttachmentType -
The attachment's type.
inherited
-
getVertices(
) → Float32List -
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 arex,y,weight
entries for each bone affecting each vertex.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setColor(
double r, double g, double b, double a) → void -
setTimelineAttachment(
Attachment< Pointer< ? attachment) → voidNativeType> > -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited