Implement this class to provide collision filtering. In other words, you can implement
this class if you want finer control over contact creation.
public function RayCollide(userData:*, fixture:b2Fixture):Boolean
Return true if the given fixture should be considered for ray intersection.
By default, userData is cast as a b2Fixture and collision is resolved according to ShouldCollide
Parameters
| userData:* — arbitrary data passed from Raycast or RaycastOne
|
| |
| fixture:b2Fixture — the fixture that we are testing for filtering
|
Returns
| Boolean — a Boolean, with a value of false indicating that this fixture should be ignored.
|
See also
public function ShouldCollide(fixtureA:b2Fixture, fixtureB:b2Fixture):Boolean
Return true if contact calculations should be performed between these two fixtures.
Warning: for performance reasons this is only called when the AABBs begin to overlap.
Parameters
Returns
Box2DFlash 2.1a