com.haxepunk.masks.Circle

type
class
extends
Hitbox
Uses circular area to determine collision.

Constructor

new(?radius : Int, ?x : Int, ?y : Int)
parameters
radius Radius of the circle.
x X offset of the circle.
y Y offset of the circle.
Constructor.

Instance Variables hide inherited show inherited

height(getHeight,setHeight) : Int

Height.
The parent Masklist of the mask.

parent : Entity

inherited from com.haxepunk.Mask
The parent Entity of this mask.

radius(getRadius,setRadius) : Int

Radius.

width(getWidth,setWidth) : Int

Width.

x(getX,setX) : Int

X offset.

y(getY,setY) : Int

Y offset.

Instance Methods hide inherited show inherited

collide(mask : Mask) : Bool

inherited from com.haxepunk.Mask
parameters
mask The other Mask to check against.
returns
If the Masks overlap.
Checks for collision with another Mask.

debugDraw(graphics : nme.display.Graphics, scaleX : Float, scaleY : Float) : Void

update() : Void

Updates the parent's bounds for this mask.