HingeJoint.useMotor

var useMotor : boolean

Description

Enables the joint's motor.

JavaScript
    hingeJoint.useMotor = true;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Example() {
hingeJoint.useMotor = true;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
hingeJoint.useMotor = true