Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


bendingStiffness

Bending stiffness of the cloth.
Read time 1 minuteLast updated 4 days ago

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; }}