Contact.sensor constructor

Contact.sensor({
  1. required Shape sensor,
  2. required Shape visitor,
})

Creates the contact for a sensor begin or end event.

Implementation

Contact.sensor({required Shape sensor, required Shape visitor})
  : shapeA = sensor,
    shapeB = visitor,
    normal = null,
    points = null,
    isSensorEvent = true;