Box2D::b2Contact - Manages contact between two shapes.
my $fixture_a = $contact->GetFixtureA(); my $fixture_b = $contact->GetFixtureB();
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.
Get the first fixture in this contact.
Returns a Box2D::b2Fixture
Box2D::b2Fixture
Get the second fixture in this contact.
Get the contact manifold. Do not modify the manifold unless you understand the internals of Box2D.
Returns a Box2D::b2Manifold
Box2D::b2Manifold
Get the next contact in the world's contact list.
Returns a Box2D::b2Contact
Box2D::b2Contact
Has this contact been disabled?
Returns a bool
bool
Is this contact touching?
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
$flag
Box2D
Box2D::b2ContactListener
See "BUGS" in Box2D
See "AUTHORS" in Box2D
See "COPYRIGHT & LICENSE" in Box2D
To install Box2D, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Box2D
CPAN shell
perl -MCPAN -e shell install Box2D
For more information on module installation, please visit the detailed CPAN module installation guide.