SkinnedCloth.worldVelocityScale 世界速度比例

var worldVelocityScale : float

Description描述

How much world-space movement of the character will affect cloth vertices.

在世界空间角色有多少移动,将影响布料顶点。

The higher this value is, the more the cloth will move as a reaction to world space movement of the GameObject. Basically, this defines the air friction of the SkinnedCloth.

这个值越高,越多布料会以反作用力移动到游戏物体的世界空间移动。基本上,这个定义SkinnedCloth的空气摩擦力。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Awake() {
		GetComponent<SkinnedCloth>().worldVelocityScale = 0.5F;
	}
}
GetComponent(SkinnedCloth).worldVelocityScale = 0.5;
Page last updated: 2011-3-26