bendingStiffness
Bending stiffness of the cloth.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.ClothModule
public float bendingStiffness { get; set; }
Remarks
Must be between zero and one. Setting the value to zero disables bending stiffness simulation.
In many cases, when you want a cloth to be more stiff, actually reducing the number of vertices will get you better results - and performance.
Examples
using UnityEngine;public class Example : MonoBehaviour{ void Start() { GetComponent<Cloth>().bendingStiffness = 1; }}