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

    Class BobbingBehavior

    Makes an object bob up and down on the Y-axis using a sine wave. Ideal for floating power-ups, boats, or hovering items.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    amplitude: number
    frequency: number
    isActive: boolean = true
    target: CameraInterfaceData | Object3D | undefined = undefined

    The object this behavior is attached to. Set automatically.

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

    Methods