Joint.axis 轴

var axis : Vector3

Description描述

The Direction of the axis around which the body is constrained.

物体被约束绕这个轴的方向。

The Axis is defined in local space.

轴是定义在自身坐标空间。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		hingeJoint.axis = Vector3.up;
	}
}
hingeJoint.axis = Vector3.up;
Page last updated: 2011-1-26