Class SwingTwistConstraint

Swing-twist constraint.

Hierarchy (view full)

Accessors

Methods

  • Changes the swing 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