Oncollisionenter

Component3D.onCollisionEnter() method

Event fired when this component starts colliding with another component

Signature:

onCollisionEnter(cb: EventListeners[typeof EVENTS.COLLISION_ENTER]): () => void;

Parameters

Parameter

Type

Description

cb

EventListeners[typeof EVENTS.COLLISION_ENTER]

**Returns:**

() => void