NAME
Box2D::b2ContactImpulse - Contact impulses for reporting.
SYNOPSIS
for my $i ( 0 .. $contact->GetManifold()->pointCount() - 1 ) {
my $impulse = $contactImpulse->normalImpulses( $i );
# Do something
}
DESCRIPTION
Contact impulses for reporting. Impulses are used instead of forces because sub-step forces may approach infinity for rigid body collisions. These match up one-to-one with the contact points in Box2D::b2Manifold
.
METHODS
normalImpulses( $index )
Parameters:
int
$index
Returns a float32
SEE ALSO
BUGS
See "BUGS" in Box2D