◇
component · drop-in viewer
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:
by·posted 3mo ago
What it does
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).
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.