JointSpring.targetPosition 目标位置

var targetPosition : float

Description描述

The target position the joint attempts to reach.

关节试图达到目标位置。

In the case of a HingeJoint the target position is the target angle in degrees.

就铰链关节目标位置来说是目标角度。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		hingeJoint.spring.targetPosition = 70;
	}
}
hingeJoint.spring.targetPosition = 70;
Page last updated: 2010-12-23