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