Box2D::b2ContactImpulse - Contact impulses for reporting.
for my $i ( 0 .. $contact->GetManifold()->pointCount() - 1 ) { my $impulse = $contactImpulse->normalImpulses( $i ); # Do something }
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.
Box2D::b2Manifold
Parameters:
int $index
int
$index
Returns a float32
float32
Box2D
Box2D::b2ContactListener
Box2D::b2Contact
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.