++ed by:
GARU

1 PAUSE user
1 non-PAUSE user.

Jeffrey T. Palmer
and 1 contributors

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

AUTHORS

See "AUTHORS" in Box2D

COPYRIGHT & LICENSE

See "COPYRIGHT & LICENSE" in Box2D