Kartik Thakore > Box2D-0.01 > Box2D::b2ContactListener

Download:
Box2D-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Box2D-0.05

NAME ^

Box2D::b2ContactListener - 2D Physics Library Contact Listener

METHODS ^

Creation

new Box2D::b2ContactListener

Creates and returns a new b2Contactlistener. This is an inheritance friendly sub so you're free to leave it as default. Remember to call super in your own code, don't forget to call this!

Listener Methods

$listener->BeginContact( $contact )
$listener->EndContact( $contact )
$listener->PreSolve( $contact, $manifold )
$listener->PostSolve( $contact, $impulse )
$listener->setOurListeners()

This is private don't bother calling it unless you inherit and need to initialize. $self->{_listener} needs to be a PerlContactListener

syntax highlighting: