Small World Engine API Reference - v0.46.1
    Preparing search index...

    Class ProximitySensorBehavior

    A behavior that acts as a proximity sensor. It measures the distance between the object it is attached to and a target object, and calls the onUpdate callback with a normalized factor between 0.0 (far away) and 1.0 (close).

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    isActive: boolean = true
    options: Required<ProximitySensorOptions>
    target: CameraInterfaceData | Object3D | undefined = undefined

    The object this behavior is attached to. Set automatically.

    uuid: string = ...
    inspector?: Record<string, InspectorField>

    Methods