Creates a new ProximitySensorBehavior.
Configuration options.
The object this behavior is attached to. Set automatically.
ReadonlyuuidStatic Optional ReadonlyinspectorCalled when the behavior is attached to an object.
Called when the behavior is detached from an object.
Called every frame to update the behavior logic.
The time elapsed since the last frame in seconds.
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
onUpdatecallback with a normalized factor between 0.0 (far away) and 1.0 (close).