InteractiveCloth.density 密度
var density : float
Description描述
The density of the cloth.
布料的密度。
This sets the mass of the cloth per area. Must be greater than zero. Changing this property causes the cloth simulation to reset.
这个设置布料单位面积的质量,必须大于零。更改此属性将导致布料模拟复位。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Awake() {
transform.GetComponent<InteractiveCloth>().density = 50;
}
}
// This will simulate heavy cloth like "chain mail"
//这将模拟像"锁子甲"重布料
transform.GetComponent(InteractiveCloth).density = 50;
最后修改:2011年3月27日 Sunday 17:52