NAME
Box2D::b2Contact - Manages contact between two shapes.
SYNOPSIS
my $fixture_a = $contact->GetFixtureA();
my $fixture_b = $contact->GetFixtureB();
DESCRIPTION
The class manages contact between two shapes. A contact exists for each overlapping AABB in the broad-phase (except if filtered). Therefore a contact object may exist that has no contact points.
METHODS
GetFixtureA()
Get the first fixture in this contact.
Returns a Box2D::b2Fixture
GetFixtureB()
Get the second fixture in this contact.
Returns a Box2D::b2Fixture
GetManifold()
Get the contact manifold. Do not modify the manifold unless you understand the internals of Box2D.
Returns a Box2D::b2Manifold
GetNext()
Get the next contact in the world's contact list.
Returns a Box2D::b2Contact
IsEnabled()
Has this contact been disabled?
Returns a bool
IsTouching()
Is this contact touching?
Returns a bool
SetEnabled( $flag )
Enable/disable this contact. This can be used inside the pre-solve contact listener. The contact is only disabled for the current time step (or sub-step in continuous collisions).
Parameters:
bool
$flag
SEE ALSO
BUGS
See "BUGS" in Box2D