Detects collisions between two boxes.
public function BoxBoxCollision()
Creates a new BoxBoxCollision object.
public final function test(b0:Collider, b1: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
| b0:Collider — The first colldier to test.
|
|
| b1: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.
|
Returns | int — The resulted last contact index.
|
Tue Feb 11 2014, 04:19 PM -03:00