Taos API Reference
    Preparing search index...

    Interface SensorCallbacks

    Callbacks for a sensor (trigger) body's overlap events.

    interface SensorCallbacks {
        onEnter?: (other: Body | undefined) => void;
        onExit?: (other: Body | undefined) => void;
    }
    Index

    Properties

    Properties

    onEnter?: (other: Body | undefined) => void

    A body began overlapping the sensor. other is the overlapping body if it is tracked by this world (else undefined — e.g. a character's inner body).

    onExit?: (other: Body | undefined) => void

    A body stopped overlapping the sensor.