ConstantForce.relativeTorque 相对力矩

var relativeTorque : Vector3

Description描述

The torque - relative to the rigid bodies coordinate system - applied every frame.

该力矩,相对于该刚体的坐标系统,在每帧中应用。

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	public void Awake() {

		constantForce.relativeTorque = Vector3.right * 2;

	}

}
// Rotates the object around the its own x-axis

//绕它的自身坐标x轴,旋转物体



constantForce.relativeTorque = Vector3.right * 2;
Page last updated: 2011-1-15