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

    Class OscillatorBehavior

    A generalized behavior that encapsulates mathematical oscillation (Sine, Noise, etc.). It does not know what it is animating, it only generates a value and calls the onUpdate callback.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    amplitude: number
    frequency: number
    isActive: boolean = true
    offset: number
    onUpdate: (value: number, deltaTime: number) => void
    target: CameraInterfaceData | Object3D | undefined = undefined

    The object this behavior is attached to. Set automatically.

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

    Methods