Strata - v1.4.10
    Preparing search index...

    Interface GroundSwitchRef

    Ref interface for GroundSwitch.

    interface GroundSwitchRef {
        getAxis: () => InputAxis;
        getWorldPosition: () => Vector3;
        isActive: () => boolean;
        reset: () => void;
        setValue: (value: number) => void;
        toggle: () => void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    getAxis: () => InputAxis

    Get current axis values (usually -1 to 1).

    getWorldPosition: () => Vector3

    Get the world position of the control.

    isActive: () => boolean

    Whether the control is currently being interacted with.

    reset: () => void

    Reset the control to its neutral state.

    setValue: (value: number) => void

    Manually set the switch value (-1 to 1).

    toggle: () => void

    Toggle the switch position manually.