Pair
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Properties
publiccolliderA
publiccolliderB
publicid
Accessors
publiccanCollide
Returns whether or not it is possible for the pairs to collide
Returns boolean
Methods
publiccollide
Runs the collision intersection logic on the members of this pair
Returns CollisionContact[]
publichasCollider
Check if the collider is part of the pair
Parameters
collider: Collider
Returns boolean
publicstaticcalculatePairHash
publicstaticcanCollide
publicstaticisDormant
A pair is dormant when neither body can move: both are asleep, or one is asleep against a CollisionType.Fixed body. Dormant pairs need no collision detection, the collision system carries their last contact over unchanged until one of them wakes.
Parameters
bodyA: BodyComponent | null | undefined
bodyB: BodyComponent | null | undefined
Returns boolean
Models a potential collision between 2 colliders