Jeffrey T. Palmer > Box2D-0.07 > Box2D::b2ContactImpulse

Download:
Box2D-0.07.tar.gz

Annotate this POD

View/Report Bugs
Source  

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:

Returns a float32

SEE ALSO ^

BUGS ^

See "BUGS" in Box2D

AUTHORS ^

See "AUTHORS" in Box2D

COPYRIGHT & LICENSE ^

See "COPYRIGHT & LICENSE" in Box2D

syntax highlighting: