Packageorg.MARS.dynamics.collision.fine.sat
Classpublic class PointPolygonDetector

Detects collision between a Point and IBody

See also

IFineCollisionDetector
PolygonPolygonDetector


Protected Properties
 PropertyDefined by
  body : Shape
PointPolygonDetector
  point : Vector
PointPolygonDetector
Public Methods
 MethodDefined by
  
PointPolygonDetector
  
hasCollision():Boolean
PointPolygonDetector
Protected Constants
 ConstantDefined by
  EPSILON : Number = 15
[static]
PointPolygonDetector
Property detail
bodyproperty
protected var body:Shape
pointproperty 
protected var point:Vector
Constructor detail
PointPolygonDetector()constructor
public function PointPolygonDetector(body:Shape, point:Vector)Parameters
body:Shape
 
point:Vector
Method detail
hasCollision()method
public function hasCollision():Boolean

Returns
Boolean
Constant detail
EPSILONconstant
protected static const EPSILON:Number = 15