ok anyone see how I can attach object 8 to the center of the cloth and make it so that the cloth streaches to where object 8 is now, behind the arrow.
Rem Project: phybowandarrow1
Rem Created: 15/08/2006 11:22:37
Rem ***** Main Source File *****
phy start
autocam off
position camera 0,0,80,-150
point camera -25,50,0
rem ground
make object box 1,100,1,100
color object 1,RGB(128,128,0)
phy make rigid body static box 1
rem upright stand
make object box 2,5,50,5
position object 2,0,25,0
color object 2,RGB(128,0,0)
phy make rigid body static box 2
rem shaft
`make object box 3,5,5,50
`position object 3,0,55,0
`phy make rigid body static box 3
rem cross
`make object box 4,40,5,5
`position object 4,0,55,20
`phy make rigid body static box 4
make object box 5,2,3,2
position object 5,18,58,19
phy make rigid body static box 5
make object box 6,2,3,2
position object 6,-18,58,19
phy make rigid body static box 6
make object box 7,1,1,28
color object 7,RGB(0,255,0)
position object 7,0,59,-15
phy make rigid body static box 7
make object box 8,2,2,2
position object 8,0,59,-30
phy make rigid body static box 8
phy make cloth 1000
phy set cloth dimensions 1000,37,.25.0,0.25
phy set cloth position 1000,-18,58.0,19.0
phy set cloth rotation 1000,0.0,0.0,0.0
phy set cloth stretching stiffness 1000,0.1
phy set cloth damping 1000,1
phy set cloth bending stiffness 1000,1.0
phy set cloth friction 1000,1.0
phy build cloth 1000
phy attach cloth to shape 1000,5,0
phy attach cloth to shape 1000,6,0
phy attach cloth vertex to shape 1000,0,8,0,0,0,0
do
control camera using arrowkeys 0,.1,.1
phy update
sync
loop
and here it is using two cloths but not able to join them to object 8.
Rem Project: phybowandarrow1
Rem Created: 15/08/2006 11:22:37
Rem ***** Main Source File *****
phy start
autocam off
position camera 0,0,80,-150
point camera -25,50,0
rem ground
make object box 1,100,1,100
color object 1,RGB(128,128,0)
phy make rigid body static box 1
rem upright stand
make object box 2,5,50,5
position object 2,0,25,0
color object 2,RGB(128,0,0)
phy make rigid body static box 2
rem shaft
`make object box 3,5,5,50
`position object 3,0,55,0
`phy make rigid body static box 3
rem cross
`make object box 4,40,5,5
`position object 4,0,55,20
`phy make rigid body static box 4
make object box 5,2,3,2
position object 5,18,58,19
phy make rigid body static box 5
make object box 6,2,3,2
position object 6,-18,58,19
phy make rigid body static box 6
make object box 7,1,1,28
color object 7,RGB(0,255,0)
position object 7,0,59,-15
phy make rigid body static box 7
make object box 8,2,2,2
position object 8,0,59,-30
phy make rigid body static box 8
phy make cloth 1000
phy set cloth dimensions 1000,100,.25.0,0.25
phy set cloth position 1000,-18,58.0,19.0
phy set cloth rotation 1000,0.0,0.0,0.0
phy set cloth stretching stiffness 1000,0.1
phy set cloth damping 1000,1
phy set cloth bending stiffness 1000,1.0
phy set cloth friction 1000,1.0
phy build cloth 1000
phy make cloth 1001
phy set cloth dimensions 1001,100,.25.0,0.25
phy set cloth position 1001,-18,58.0,19.0
phy set cloth rotation 1001,0.0,0.0,0.0
phy set cloth stretching stiffness 1001,0.1
phy set cloth damping 1001,1
phy set cloth bending stiffness 1001,1.0
phy set cloth friction 1001,1.0
phy build cloth 1001
phy attach cloth to shape 1000,6,0
phy attach cloth to shape 1000,8,0
phy attach cloth to shape 1001,5,0
phy attach cloth to shape 1001,8,0
do
control camera using arrowkeys 0,.1,.1
phy update
sync
loop
Dark Physics makes any hot drink go cold.