Hi All,
Anyone suggest any materials or a skin width to keep this from collapsing?
sync on : sync rate 0 : hide mouse
autocam off : position camera 45,40,45 : point camera 0,20,0
color backdrop 0 : set ambient light 50 : backdrop on
load image "Floor02.jpg",1
null = mousemovex() : null = mousemovey() : null = mousemovez()
phy start
phy update 0
phy set gravity 0,-9.8,0
`phy set skin width .00005
phy make material 1, "concrete"
phy set material restitution 1, 0.05
phy set material dynamic friction 1, 1
phy build material 1
make object box 1,50,.1,50
position object 1,0,0,0
texture object 1,1
phy make rigid body static box 1,1
ndx = 10
for j = 0 to 9
for i = -20 to 20 step 5
make object box ndx,.5,5,.5
texture object ndx,1
position object ndx,i-1,2.6+(5.1*j),-20
phy make rigid body dynamic box ndx,1
inc ndx
clone object ndx,ndx-1
position object ndx,i-1,2.6+(5.1*j),20
phy make rigid body dynamic box ndx,1
inc ndx
next i
clone object ndx,1
position object ndx,0,5.1+(5.1*j),0
phy make rigid body dynamic box ndx,1
inc ndx
next j
do
phy update 1
x#=x#+mousemovey() : y#=y#+mousemovex() : z#=z#+mousemovez() : rotate camera x#,y#,z#
text 0,0,str$(screen fps())
sync
phy update 0
loop
Robin
P.S. after about 10 floors it just falls...