约束,应用于布料的外部加速度。
使用它可模拟布料上的恒定力,例如使旗帜飘扬的风。 另请参阅:Cloth.randomAcceleration。
using UnityEngine;
using System.Collections;
public class ExampleClass : MonoBehaviour {
void Example() {
transform.GetComponent<Cloth>().externalAcceleration = -Physics.gravity / 2;
}
}