You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {(MatterJS.Body|MatterJS.Body[])} body - The target body, or array of target bodies, to check.
834
-
* @param {MatterJS.Body[]} [object2] - The second body, or array of bodies, to check. If falsey it will check against all bodis in the world.
833
+
* @param {(MatterJS.Body|MatterJS.Body[])} target - The target body, or array of target bodies, to check.
834
+
* @param {MatterJS.Body[]} [bodies] - The second body, or array of bodies, to check. If falsey it will check against all bodies in the world.
835
835
* @param {ArcadePhysicsCallback} [overlapCallback] - An optional callback function that is called if the bodies overlap.
836
836
* @param {ArcadePhysicsCallback} [processCallback] - An optional callback function that lets you perform additional checks against the two bodies if they overlap. If this is set then `overlapCallback` will only be invoked if this callback returns `true`.
837
837
* @param {*} [callbackContext] - The context, or scope, in which to run the callbacks.
838
838
*
839
839
* @return {boolean} `true` if the target body intersects with _any_ of the bodies given, otherwise `false`.
0 commit comments