JointMotor.targetVelocity 目标速度

var targetVelocity : float

Description描述

The motor will apply a force up to force to achieve targetVelocity.

该动力将应用一个最大的力以达到目标速度(targetVelocity)。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		hingeJoint.motor.targetVelocity = 10;
	}
}
// Achieve 10 m/s.
//达到每秒10米

hingeJoint.motor.targetVelocity = 10;
Page last updated: 2011-1-27