Skip to main content

update

Function update 

Source
pub fn update(world: &mut World, time: f32, dt: f32, simulate: bool)
Expand description

Advances every cloth and refreshes its DynamicMesh. With simulate false only the initial (rest) shape is built, which is what the editor shows outside Play mode. Simulation deltas are sanitized and limited to 0.1 seconds for solver stability. Cached world matrices are refreshed so same-frame transform edits are visible.