Strata - v1.4.10
    Preparing search index...

    Interface PressurePlateRef

    Ref interface for PressurePlate.

    interface PressurePlateRef {
        getAxis: () => InputAxis;
        getPressure: () => number;
        getWorldPosition: () => Vector3;
        isActive: () => boolean;
        reset: () => void;
        setPressed: (pressed: boolean) => void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    getAxis: () => InputAxis

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

    getPressure: () => number

    Get current pressure normalized to activation depth.

    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.

    setPressed: (pressed: boolean) => void

    Manually set the pressed state.