Package | flare.physics.test |
Class | public final class BoxBox |
Inheritance | BoxBox ![]() |
Implements | flare.physics.ICollision |
Method | Defined By | ||
---|---|---|---|
BoxBox()
Creates a new BoxBox object. | BoxBox | ||
Test two colliders for collisions and contact points. | BoxBox |
BoxBox | () | Constructor |
public function BoxBox()
Creates a new BoxBox object.
test | () | method |
public final function test(collider0:Collider, collider1:Collider, contacs:Vector.<Contact>, numContacts:int):int
Test two colliders for collisions and contact points. This method outputs the contacts in a plain contact list. This allows for reusing previous contacts and to test multiple tests in batch.
Parameters
collider0:Collider — The first colldier to test.
| |
collider1:Collider — The second collider to test.
| |
contacs:Vector.<Contact> — The contact list where the result contacts will be stored.
| |
numContacts:int — The first contacts vector index where new contacts will be placed.
|
int — The resulted last contact index.
|