Editor.Components.ClothVisual.BendMode
EnumThe same entity as in Lens Scripting.
Index
Example
const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
const scene = model.project.scene;
// Create a ClothVisual and set the bend mode
const obj = scene.createSceneObject('Cloth');
const cloth = obj.addComponent('ClothVisual');
cloth.bendMode = Editor.Components.ClothVisual.BendMode.Isometric;
cloth.bendStiffness = 0.5;
console.log(`bendMode: ${cloth.bendMode}, bendStiffness: ${cloth.bendStiffness}`);
Enumeration Members
Isometric
Isometric:
number
Isometric bending model preserving cloth surface area.
Linear
Linear:
number
Linear bending model for simpler cloth simulation.