Joint.anchor 锚

var anchor : Vector3

Description描述

The Position of the anchor around which the joints motion is constrained.

关节的运动被约束绕这个锚的位置。

The Position is defined in local space.

位置是定义在自身坐标空间。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		hingeJoint.anchor = new Vector3(2, 0, 0);
	}
}
hingeJoint.anchor = Vector3 (2, 0, 0);
Page last updated: 2011-1-26