Strata - v1.4.10
    Preparing search index...

    Interface PressurePlateProps

    Props for the PressurePlate component.

    interface PressurePlateProps {
        activationDepth?: number;
        activeColor?: ColorRepresentation;
        color?: ColorRepresentation;
        onActivate?: (event: InputEvent) => void;
        onAxisChange?: (axis: InputAxis, worldPosition: Vector3) => void;
        onDeactivate?: (event: InputEvent) => void;
        onPress?: (event: InputEvent) => void;
        onRelease?: (event: InputEvent) => void;
        position?: [number, number, number];
        size?: [number, number, number];
        springiness?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    activationDepth?: number

    Depth at which the plate activates. Default: 0.08.

    activeColor?: ColorRepresentation

    Active plate color. Default: '#44aa44'.

    color?: ColorRepresentation

    Inactive plate color. Default: '#aa4444'.

    onActivate?: (event: InputEvent) => void

    Fired when the control is first pressed or activated.

    onAxisChange?: (axis: InputAxis, worldPosition: Vector3) => void

    Fired continuously as axis values change.

    onDeactivate?: (event: InputEvent) => void

    Fired when the control is released or deactivated.

    onPress?: (event: InputEvent) => void

    Fired on initial interaction start.

    onRelease?: (event: InputEvent) => void

    Fired when interaction ends.

    position?: [number, number, number]

    World position [x, y, z]. Default: [0, 0, 0].

    size?: [number, number, number]

    Plate dimensions [width, height, depth]. Default: [1, 0.15, 1].

    springiness?: number

    Return spring stiffness. Default: 12.