com.haxepunk.Mask
type
class
subclasses
com.haxepunk.masks.Hitbox
Base class for Entity collision masks.
Constructor
new
()
Constructor.
Instance Variables
list
:
com.haxepunk.masks.Masklist
The parent Masklist of the mask.
parent
:
Entity
The parent Entity of this mask.
Instance Methods
collide
(mask :
Mask
) :
Bool
parameters
mask
The other Mask to check against.
returns
If the Masks overlap.
Checks for collision with another Mask.
debugDraw
(graphics :
flash.display.Graphics
, scaleX :
Float
, scaleY :
Float
) :
Void
Override this
project
(axis :
com.haxepunk.math.Vector
, projection :
com.haxepunk.math.Projection
) :
Void
update
() :
Void
Updates the parent's bounds for this mask.