Cloth.useGravity 使用重力

var useGravity : bool

Description描述

Should gravity affect the cloth simulation?

是否重力影响布料模拟?

// Dont use gravity on this cloth regardless if is Interactive or Skinned.
// 使布料不受重力的影响

transform.GetComponent(Cloth).useGravity = false;

最后修改:2011年1月18日 Tuesday 21:44

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。