PointAttachment

Attachmentspine.attachments.PointAttachment (Class)

An attachment which is a single point and a rotation. This can be used to spawn projectiles, particles, etc. A bone can be used in similar ways, but a PointAttachment is slightly less expensive to compute and can be hidden, shown, and placed in a skin.

See Point Attachments in the Spine User Guide.

Instance Members

spine
x: Float

spine
y: Float

spine
rotation: Float


spine
getX(): Float
Returns
Float

spine
setX(x: Float): Void
Name Type
x Float

spine
getY(): Float
Returns
Float

spine
setY(y: Float): Void
Name Type
y Float

spine
getRotation(): Float
Returns
Float

spine
setRotation(rotation: Float): Void
Name Type
rotation Float

The color of the point attachment as it was in Spine, or a default clor if nonessential data was not exported. Point attachments are not usually rendered at runtime.

Returns
spine.support.graphics.Color

spine
computeWorldPosition(bone: spine.Bone, point: spine.support.math.Vector2): spine.support.math.Vector2
Name Type
bone spine.Bone
point spine.support.math.Vector2
Returns
spine.support.math.Vector2

spine
computeWorldRotation(bone: spine.Bone): Float
Name Type
bone spine.Bone
Returns
Float

spine
copy(): Attachment
Returns
Attachment

spine
new(name: String): Void
Name Type
name String