beginContact method

void beginContact(
  1. Object other,
  2. Contact contact
)

Called when two Fixtures start being in contact.

It is called for sensors and non-sensors.

Implementation

void beginContact(Object other, Contact contact) {
  onBeginContact?.call(other, contact);
}