PackagePBLabs.Rendering2D
Interfacepublic interface ISpatialObject2D
ImplementorsSimpleSpatialComponent

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.



Public Properties
 PropertyDefined by
  ObjectMask : ObjectType
[read-only] This object's collision flags.
ISpatialObject2D
  WorldExtents : Rectangle
[read-only] Axis aligned object bounds in world space.
ISpatialObject2D
Public Methods
 MethodDefined by
  
CastRay(start:Point, end:Point, flags:ObjectType, result:RayHitInfo):Boolean
Perform a ray cast against this object.
ISpatialObject2D
Property detail
ObjectMaskproperty
ObjectMask:ObjectType  [read-only]

This object's collision flags.

Implementation
    public function get ObjectMask():ObjectType
WorldExtentsproperty 
WorldExtents:Rectangle  [read-only]

Axis aligned object bounds in world space.

Implementation
    public function get WorldExtents():Rectangle
Method detail
CastRay()method
public function CastRay(start:Point, end:Point, flags:ObjectType, result:RayHitInfo):Boolean

Perform a ray cast against this object.

Parameters
start:Point
 
end:Point
 
flags:ObjectType
 
result:RayHitInfo

Returns
Boolean