Skip to content

eulerjs API / @eulerjs/core/extend / collide

collide() ​

ts
function collide(
   colliderA, 
   poseA, 
   colliderB, 
   poseB, 
   contacts, 
   margin?
): void;

Defined in: packages/core/src/javascript/collision/narrowphase.ts:118

Every contact between two colliders at the given poses, counting points up to margin apart. None if they don't touch or no test is registered for the pair of shapes.

Parameters ​

ParameterTypeDefault value
colliderAColliderundefined
poseAColliderPoseundefined
colliderBColliderundefined
poseBColliderPoseundefined
contactsContactPoint[]undefined
margin?number0

Returns ​

void

Released under the MIT License.