HingeJoint.useMotor 使用动力

var useMotor : bool

Description描述

Enables the joint's motor.

启用关节的动力。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		hingeJoint.useMotor = true;
	}
}
hingeJoint.useMotor = true;
Page last updated: 2011-1-28