Preparing search index...

    Class HingeConstraint

    Constraints translation and a single axis of rotation. See also: ConstraintComponent.

    Lens Scripting Version 164

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

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

    Hierarchy (View Summary)

    Index

    Properties

    constraintType: ConstraintType

    The type of constraint that is applied.

    Lens Scripting Version 164

    Settings limiting the behaviour of hinge constraint in respect to the applied forces.

    Lens Scripting Version 164

    Settings describing the independent force (motor) applied to the constraint.

    Lens Scripting Version 164

    Methods

    • Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().

      Returns string

      Lens Scripting Version 164

    • 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