| Package | org.generalrelativity.foam.dynamics.collision.coarse |
| Class | public class AABRDetector |
| Implements | ICoarseCollisionDetector |
| Property | Defined by | ||
|---|---|---|---|
| factory : ICollisionFactory
[write-only]
Sets the ICollisionFactory used to return a certain type of IFineCollisionDetectors.
| AABRDetector | ||
| Method | Defined 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 | ||
|
getDynamicCollidables():Array
| AABRDetector | ||
|
removeCollidable(collidable:ISimulatable):void
Removes a collidable element from coarse detection
| AABRDetector | ||
| factory | property |
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
| AABRDetector | () | constructor |
public function AABRDetector()
Creates a new AABRDetector for use in collision culling by PhysicsEngine
See also
| addCollidable | () | method |
public function addCollidable(collidable:ISimulatable):voidAdds a collidable element to detect for collision
Parameterscollidable:ISimulatable — element to add for detection
|
See also
| getCandidates | () | method |
public function getCandidates():ArrayGets an Array of IFineCollisionDetectors from all pairwise detections not ruled out
ReturnsArray — all necessary pairwise collision tests remaining
|
See also
| getDynamicCollidables | () | method |
public function getDynamicCollidables():Array
Returns
Array |
| removeCollidable | () | method |
public function removeCollidable(collidable:ISimulatable):voidRemoves a collidable element from coarse detection
Parameterscollidable:ISimulatable — element to remove from detection
|
See also