ContactCallbacks class mixin
Used to listen to a BodyComponent's contact events.
Contact events occur whenever two Fixture meet each other.
To react to contacts you should assign ContactCallbacks to a Body's
userData or/and to a Fixture's userData.
If the Body userData is set to a ContactCallbacks the contact events
of this will be called when any Body's fixture contacts another Fixture.
If instead you wish to be more specific and only trigger contact events
when a specific Body's fixture contacts another Fixture, you can
set the fixture userData to a ContactCallbacks.
If the colliding Fixture userData and Body userData are null, then
the contact events are not called.
The described behavior is a simple out of the box solution to propagate contact events. If you wish to implement your own logic you can subclass ContactListener and provide it to your Forge2DGame.
Constructors
Properties
- hashCode → int
 - 
  The hash code for this object.
  no setterinherited
 - onBeginContact ↔ void Function(Object other, Contact contact)?
 - 
  
  getter/setter pair
 - onEndContact ↔ void Function(Object other, Contact contact)?
 - 
  
  getter/setter pair
 - onPostSolve ↔ void Function(Object other, Contact contact, ContactImpulse impulse)?
 - 
  
  getter/setter pair
 - onPreSolve ↔ void Function(Object other, Contact contact, Manifold oldManifold)?
 - 
  
  getter/setter pair
 - runtimeType → Type
 - 
  A representation of the runtime type of the object.
  no setterinherited
 
Methods
- 
  beginContact(
Object other, Contact contact) → void  - Called when two Fixtures start being in contact.
 - 
  endContact(
Object other, Contact contact) → void  - Called when two Fixtures cease being in contact.
 - 
  noSuchMethod(
Invocation invocation) → dynamic  - 
  Invoked when a nonexistent method or property is accessed.
  inherited
 - 
  postSolve(
Object other, Contact contact, ContactImpulse impulse) → void  - Called after collision resolution.
 - 
  preSolve(
Object other, Contact contact, Manifold oldManifold) → void  - Called after collision detection, but before collision resolution.
 - 
  toString(
) → String  - 
  A string representation of this object.
  inherited
 
Operators
- 
  operator ==(
Object other) → bool  - 
  The equality operator.
  inherited