Package | Box2D.Dynamics |
Class | public class b2ContactListener |
Source | b2ContactListener.as |
Warning: You cannot create/destroy Box2D entities inside these callbacks.
Method | Defined by | ||
---|---|---|---|
Add(point:b2ContactPoint):void
Called when a contact point is added.
| b2ContactListener | ||
Persist(point:b2ContactPoint):void
Called when a contact point persists.
| b2ContactListener | ||
Remove(point:b2ContactPoint):void
Called when a contact point is removed.
| b2ContactListener | ||
Result(point:b2ContactResult):void
Called after a contact point is solved.
| b2ContactListener |
Add | () | method |
public function Add(point:b2ContactPoint):void
Called when a contact point is added. This includes the geometry and the forces.
Parameterspoint:b2ContactPoint |
Persist | () | method |
public function Persist(point:b2ContactPoint):void
Called when a contact point persists. This includes the geometry and the forces.
Parameterspoint:b2ContactPoint |
Remove | () | method |
public function Remove(point:b2ContactPoint):void
Called when a contact point is removed. This includes the last computed geometry and forces.
Parameterspoint:b2ContactPoint |
Result | () | method |
public function Result(point:b2ContactResult):void
Called after a contact point is solved.
Parameterspoint:b2ContactResult |