Lens Scripting API

    Class HingeLimitSettings

    Settings that describe how the position of the object should be limited in respect to the applied forces.

    //@input Physics.ConstraintComponent constraintComponent

    let constraint = script.constraintComponent.constraint;

    let limitSettings = constraint.limitSettings;
    limitSettings.enabled = true;
    limitSettings.low = 0;
    limitSettings.high = Math.PI;
    limitSettings.bias = 3;
    limitSettings.relaxation = 2;
    constraint.limitSettings = limitSettings;
    Index

    Constructors

    Properties

    Constructors

    Properties

    bias: number

    Controls how strictly constraint respects the limits.

    enabled: boolean

    Enable or disable constraint limits.

    high: number

    Maximum allowed angle (in radians), relative to the constraint resting state.

    low: number

    Minimum allowed angle (in radians), relative to the constraint resting state.

    relaxation: number

    Controls how strictly the limit is enforced. Greater values relate to more "bouncy" behaviour of the constraint.

    MMNEPVFCICPMFPCPTTAAATR