Hi there. This piece of code has not physics...not sparky's...just a little trick.
autocam off
sync on
make object box 100,5,5,5:color object 100,rgb(255,0,0)
for i= 1 to 50
make object box i,5,5,5
color object i,rgb(0,255,0)
position object i,-50+rnd(100),0,-50+rnd(100)
next i
position camera -50,100,-50
point camera 0,0,0
do
for i= 1 to 50
if object collision(i,100)>0
point object i,object position x(100),0,object position z(100)
move object i,-0.1
endif
next i
if upkey() then move object 100,0.1
if downkey() then move object 100,-0.1
if leftkey() then turn object left 100,0.5
if rightkey() then turn object right 100,0.5
point camera object position x(100),0,object position z(100)
sync
loop
I hope that help ...
I'm not a grumpy grandpa
