Object with extents and ability to be ray-casted.
This is the basic interface for objects that support 2D spatial queries.
It is enough to do broad phase collision checks and ray casts.
objectMask:ObjectType [read-only]
This object's collision flags.
Implementation public function get objectMask():ObjectType worldExtents:Rectangle [read-only]
Axis aligned object bounds in world space.
Implementation public function get worldExtents():Rectangle public function castRay(start:Point, end:Point, flags:ObjectType , result:RayHitInfo ):Boolean
Perform a ray cast against this object.
Parameters
Returns public function pointOccupied(pos:Point, mask:ObjectType , scene:IScene2D ):Boolean
Return true if the specified point is occupied by this object, used for
ObjectsUnderPoint.
Parameters
pos :Point — Location in worldspace to check.
mask :ObjectType — If we want to have the results line up with the view, we
need access to the scene we're doing the check from.
scene :IScene2D
Returns
ZaaBuild is powered by ZaaLabs, Ltd. -- http://www.zaalabs.com Tue Dec 28 2010, 08:58 PM Z