Hinge constraint.

Hierarchy (view full)

Accessors

Methods

  • Update the rotation limits of the hinge 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