Packageorg.MARS.dynamics.collision.fine.sat
Classpublic class BezierDetector
ImplementsIFineCollisionDetector

Detects collision between a CubicBezierCurve and RigidBody

See also

IFineCollisionDetector
CubicBezierCurve
PolygonPolygonDetector


Protected Properties
 PropertyDefined by
  body2 : Shape
BezierDetector
  curve : CubicBezierCurve
BezierDetector
  detectors : Array
BezierDetector
Public Methods
 MethodDefined by
  
BezierDetector
  
getContacts():Array
BezierDetector
  
hasCollision():Boolean
BezierDetector
Property detail
body2property
protected var body2:Shape
curveproperty 
protected var curve:CubicBezierCurve
detectorsproperty 
protected var detectors:Array
Constructor detail
BezierDetector()constructor
public function BezierDetector(curve:CubicBezierCurve, body2:Shape)Parameters
curve:CubicBezierCurve
 
body2:Shape
Method detail
getContacts()method
public function getContacts():Array

Returns
Array
hasCollision()method 
public function hasCollision():Boolean

Returns
Boolean