PackageBox2D.Dynamics
Classpublic class b2BoundaryListener
Sourceb2BoundaryListener.as

This is called when a body's shape passes outside of the world boundary.



Public Methods
 MethodDefined by
  
Violation(body:b2Body):void
This is called for each body that leaves the world boundary.
b2BoundaryListener
Method detail
Violation()method
public function Violation(body:b2Body):void

This is called for each body that leaves the world boundary.

Warning: you can't modify the world inside this callback.

Parameters
body:b2Body