Physics Components
    Preparing search index...

    Class SliderConstraint

    Slider constraint.

    Hierarchy (View Summary)

    Index

    Accessors

    Methods

    • Update the translational limits of the slider after the constraint has been created.

      Parameters

      • min: number

        Lower limit of the hinge angle.

      • max: number

        Upper limit of the hinge angle.

      Returns void

    • Changes the motor state, e.g. turn it on/off. Following aliases available:

      MOTOR_STATE_OFF
      
      MOTOR_STATE_VELOCITY
      
      MOTOR_STATE_POSITION
      
      • MOTOR_STATE_POSITION: Motor will drive to target position.
      • MOTOR_STATE_VELOCITY: Motor will drive to target velocity.

      Parameters

      • state: number

        Constant number, representing the state.

      Returns void