The code below works but the last ball out side the loop falls off.
any ideas what im doing wrong as im new to the phyics in DB pro.
I thought it would link to the rest of the balls as part of the loop.
Y# = 17
for i = 5 to 10
make object sphere i, 0.5+(i*0.4)
position object i, 10, Y#, 0
color object i, rgb ( rnd ( 255 ), rnd ( 255 ), rnd ( 255 ) )
phy make rigid body dynamic sphere i
phy make sphere joint i, i, i - 1, object position x ( i ), object position y ( i ), object position z ( i )
color object i, rgb ( rnd ( 255 ), rnd ( 255 ), rnd ( 255 ) )
set object specular i, rgb ( rnd ( 255 ), rnd ( 255 ), rnd ( 255 ) )
set object ambient i, 255
set object specular power i, 255
Y# = Y# - 2
next i
Y# = Y# - 2
i=i+1
make object sphere i, 1
position object i, 10, Y#, 0
color object i, rgb ( rnd ( 5 ), rnd ( 5 ), rnd ( 5 ) )
phy make rigid body dynamic sphere i
phy make sphere joint i, i, i - 1, object position x ( i ), object position y ( i ), object position z ( i )
color object i, rgb ( rnd ( 5 ), rnd ( 5 ), rnd ( 5 ) )
set object specular i, rgb ( rnd ( 5 ), rnd ( 5 ), rnd ( 5 ) )
set object ambient i, 255
set object specular power i, 255
I bet its somethink simple i cant see...lol
Game designer