Skip to content

format

typescript
Collision.contactCount

class: Collision

description

(Read Only) The number of contact points involved in the collision event.

Returns an integer value that represents the number of contact points involved in the collision. You can use this property to iterate and process information for each contact point.

parameter

param_nametypedescription

reture

typedescription
numberThe number of contact points

code example