DBking
The change you proposed causes the glass to break on my machine. I was hoping for more help with the stretch and bending parameters.
I tried to use the program to try a large subset of variables but I was unable to delete and reset the cloth using the following function
function MakePane(Pane,Frame)
` create the cloth
if object exist(Pane)
PHY DETACH CLOTH FROM SHAPE Pane,Frame
PHY DELETE RIGID BODY pane
delete object pane
endif
phy make cloth Pane
phy set cloth dimensions Pane, 5, 8, 0.25
phy set cloth position Pane, 2.5, 10, 0
phy set cloth rotation Pane, 90, 0, 180
phy set cloth friction Pane, 0.6
phy set cloth tearing Pane, 1
phy set cloth tear factor Pane, 1.1
phy set cloth damping Pane,0.01
phy set cloth bending stiffness Pane,0.95
phy set cloth stretching stiffness Pane,.95
phy set cloth gravity Pane,9.8
phy build cloth Pane
phy attach cloth to shape Pane, Frame, 0
color object Pane,rgb(100,100,255)
ghost object on Pane
endfunction
i kept receieving an error message
does anyone know how to delete cloth?
System
PIV 2.8 MZ 512 Mem
FX 5600 256 mem