Atlas Engine
API Referencebezel

Spring

Optional spring behavior with parameters interpreted according to mode.

Module: bezel

Optional spring behavior with parameters interpreted according to mode.

Declaration

export type Spring = {
        /**
         * Whether this feature is enabled.
         */
        enabled: boolean;
        /**
         * The mode.
         */
        mode: SpringMode;
        /**
         * The frequency.
         */
        frequency: number;
        /**
         * The damping ratio.
         */
        dampingRatio: number;
        /**
         * The stiffness.
         */
        stiffness: number;
        /**
         * The damping.
         */
        damping: number;
    };

Properties

enabled

Whether this feature is enabled.

enabled: boolean;

mode

The mode.

mode: SpringMode;

frequency

The frequency.

frequency: number;

dampingRatio

The damping ratio.

dampingRatio: number;

stiffness

The stiffness.

stiffness: number;

damping

The damping.

damping: number;

On this page