I just put in Dark Physics and my code isn't working. Not sure why. I am getting the error "Supplied NxActorDesc is not valid. CreateActor returns NULL"
I have narrowed the error down to the following code. If I rem the line "phy make rigid body dynamic sphere a" it makes all the spheres with no error.
for a = 100 to 1100
yyz = rnd(20)
make object sphere a, yyz
position object a, x, y, z
color object a, rgb ( rnd ( 255 ), rnd ( 255 ), rnd ( 255 ) )
set object specular a, rgb ( rnd ( 255 ), rnd ( 255 ), rnd ( 255 ) )
set object specular power a, 255
set object ambient a, 0
phy make rigid body dynamic sphere a
x = -25 + rnd ( 200 )
y = y + 5
z = -25 + rnd ( 500 )
show object a
next a