Log inGet started
World

Cloth and fabric

Branchmain
Branchesmain
Commitcd5fbc4538

README.md

ClothFabricDemo

Orchestrates the cloth & fabric technology exhibits. On entering play mode it builds four GPU-simulated cloth sheets (via the cloth module) against the stage props authored in the scene, then drives them every frame:

  • Flag — canvas, pinned to the pole along its left edge, strong gusty wind.
  • Silk banner — scallop-pinned to the frame's crossbar, light breeze, gradient dye, strong grazing sheen.
  • Velvet curtain — pinned along the rod, with a pendulum ball swinging through it; the ball is mirrored into the simulation as a live sphere collider each frame.
  • Linen tablecloth — checkered, free-falling onto the display sphere, draping over it, and re-dropping on a timer (GPU-side grid reset).

Public fields: windPower (global wind multiplier applied at build), swingAmplitude (pendulum swing, radians), resetInterval (tablecloth re-drop period, seconds).