Strata - v1.4.10
    Preparing search index...

    Interface TriggerComposerRef

    Ref interface for TriggerComposer.

    interface TriggerComposerRef {
        getAxis: () => InputAxis;
        getMesh: () => | Mesh<
            BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>,
            Material | Material[],
            Object3DEventMap,
        >
        | null;
        getWorldPosition: () => Vector3;
        isActive: () => boolean;
        reset: () => void;
        setValue: (value: number) => void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    getAxis: () => InputAxis

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

    getMesh: () => | Mesh<
        BufferGeometry<NormalBufferAttributes, BufferGeometryEventMap>,
        Material | Material[],
        Object3DEventMap,
    >
    | null

    Access the underlying Mesh instance.

    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 trigger value (-1 to 1).