PokéRogue
    Preparing search index...

    Class ConstraintFactory

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Creates a new constraint. All properties have default values, and many are pre-calculated automatically based on other properties. See the properties section below for detailed information on what you can pass via the options object.

      Parameters

      Returns ConstraintType

      constraint

      create

    • Returns the current length of the constraint. This is the distance between both of the constraint's end points. See constraint.length for the target rest length.

      Parameters

      Returns number

      the current length

      currentLength