| Package | org.generalrelativity.foam.dynamics.collision |
| Interface | public interface ICoarseCollisionDetector |
| Implementors | AABRDetector |
| Property | Defined by | ||
|---|---|---|---|
| factory : ICollisionFactory
[write-only]
Sets the ICollisionFactory used to return a certain type of IFineCollisionDetectors.
| ICoarseCollisionDetector | ||
| Method | Defined by | ||
|---|---|---|---|
|
addCollidable(collidable:ISimulatable):void
Adds a collidable element to detect for collision
| ICoarseCollisionDetector | ||
|
getCandidates():Array
Gets all pairwise elements that require fine collision detection
As an optimization, this Array is populated with | ICoarseCollisionDetector | ||
|
getDynamicCollidables():Array
Gets dynamic collidable elements
| ICoarseCollisionDetector | ||
|
removeCollidable(collidable:ISimulatable):void
Removes a collidable element from coarse detection
| ICoarseCollisionDetector | ||
| 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
| 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 all pairwise elements that require fine collision detection
As an optimization, this Array is populated with IFineCollisionDetector
instances. In practice- when a pairwise coarse collision check yields intersection,
an IFineCollisionDetector instance is created, rather than requiring
the PhysicsEngine to reiterate over a two-dimensional Array.
Array — Array of IFineCollisionDetectors representing all collisions which were not
ruled out by coarse detection.
|
See also
| getDynamicCollidables | () | method |
public function getDynamicCollidables():ArrayGets dynamic collidable elements
ReturnsArray — Array of all dynamic elements
|
| removeCollidable | () | method |
public function removeCollidable(collidable:ISimulatable):voidRemoves a collidable element from coarse detection
Parameterscollidable:ISimulatable — element to remove from detection
|
See also