SkinnedCloth.worldAccelerationScale 世界加速比例
var worldAccelerationScale : float
Description描述
How much world-space acceleration of the character will affect cloth vertices.
在世界空间角色有多少加速度,将影响布料顶点。
The higher this value is, the more the cloth will move as a reaction to world space acceleration of the GameObject. If the cloth appears lifeless, try increasing this value. If it appears to get unstable when the character accelerates, try decreasing the value.
这个值越高,越多布料会以反作用力移动到游戏物体的世界空间加速度。如果布料看来无生机,尝试增加该值。当角色加速,如果布料看起来不稳定时,尝试减小该值。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Awake() {
GetComponent<SkinnedCloth>().worldAccelerationScale = 1.0F;
}
}
GetComponent(SkinnedCloth).worldAccelerationScale = 1.0;
最后修改:2011年3月26日 Saturday 12:34