Hi All
The Ball Drop demo, if you rem out the part which make the sphere for drop down and replace it this, you will have a snake of balls falling down it.
ang# = 0.0
angstep# = 30
radius# = 7.0
h# = 30.0
` create a row of spheres
for i = 2001 to 2025
make object sphere i, 0.75
h# = h# + 0.50
temp_x# = sin(ang#)*radius#
temp_z# = cos(ang#)*(radius#/20.0)
position object i,temp_x#,h#,temp_z#
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
phy make rigid body dynamic sphere i
next i
phy set rigid body mass 2001, 1000
` attach objects together using spheres
jointID = 1
for i = 2001 to 2024
phy make sphere joint jointID, i, i + 1, object position x ( i ), object position y ( i ), object position z ( i )
jointID = jointID + 1
next i
Dark Physics makes any hot drink go cold.