Component3D.onSensorEnter() method

Event fired when this component starts intersecting a sensor

Signature:

onSensorEnter(cb: EventListeners[typeof EVENTS.SENSOR_ENTER]): () => void;

Parameters

ParameterTypeDescription
cbEventListeners[typeof EVENTS.SENSOR_ENTER]

Returns:

() => void