Lens Scripting API

    Class FixedConstraint

    Fully constrain rotation and translation.

    // Create a constraint on an object
    var fixedConstraint = hingeObj.createComponent("Physics.ConstraintComponent");

    // Set up options on that constraint
    fixedConstraint.debugDrawEnabled = true;
    fixedConstraint.constraint = Physics.Constraint.create(Physics.ConstraintType.Fixed);

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    constraintType: ConstraintType

    The type of constraint that is applied.

    Methods

    • Returns the name of this object's type.

      Returns string

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean

    MMNEPVFCICPMFPCPTTAAATR