Packageorg.generalrelativity.foam.dynamics.collision.coarse
Classpublic class AABRDetector
ImplementsICoarseCollisionDetector



Public Properties
 PropertyDefined by
  factory : ICollisionFactory
[write-only] Sets the ICollisionFactory used to return a certain type of IFineCollisionDetectors.
AABRDetector
Public Methods
 MethodDefined by
  
Creates a new AABRDetector for use in collision culling by PhysicsEngine
AABRDetector
  
addCollidable(collidable:ISimulatable):void
Adds a collidable element to detect for collision
AABRDetector
  
getCandidates():Array
Gets an Array of IFineCollisionDetectors from all pairwise detections not ruled out
AABRDetector
  
AABRDetector
  
removeCollidable(collidable:ISimulatable):void
Removes a collidable element from coarse detection
AABRDetector
Property detail
factoryproperty
factory:ICollisionFactory  [write-only]

Sets the ICollisionFactory used to return a certain type of IFineCollisionDetectors.

This opens up the easy swappability of entire detection sets

Implementation
    public function set factory(value:ICollisionFactory):void

See also

Constructor detail
AABRDetector()constructor
public function AABRDetector()

Creates a new AABRDetector for use in collision culling by PhysicsEngine

See also

PhysicsEngine
Method detail
addCollidable()method
public function addCollidable(collidable:ISimulatable):void

Adds a collidable element to detect for collision

Parameters
collidable:ISimulatable — element to add for detection

See also

ISimulatable
PhysicsEngine
removeCollidable
getCandidates()method 
public function getCandidates():Array

Gets an Array of IFineCollisionDetectors from all pairwise detections not ruled out

Returns
Array — all necessary pairwise collision tests remaining

See also

PhysicsEngine
ICoarseCollisionDetector
ICollisionFactory.getCollisionDetector
getBoundedAABR
getDynamicCollidables()method 
public function getDynamicCollidables():Array

Returns
Array
removeCollidable()method 
public function removeCollidable(collidable:ISimulatable):void

Removes a collidable element from coarse detection

Parameters
collidable:ISimulatable — element to remove from detection

See also

ISimulatable
PhysicsEngine
removeCollidable