Rigidbody.worldCenterOfMass 世界质量中心

var worldCenterOfMass : Vector3

Description描述

The center of mass of the rigidbody in world space (Read Only).

在世界坐标空间的刚体的质量中心。(只读)

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		Debug.Log(rigidbody.worldCenterOfMass);
	}
}
Debug.Log(rigidbody.worldCenterOfMass);
Page last updated: 2013-8-7