The ball is being created too low. It's inside the hole when it's created, and is already falling through. I just moved the ball up and all was good.
Rem Project: Test1
Rem Created: 04/09/2006 16:31:27
Rem ***** Main Source File *****
phy start
phy set gravity 0,-200,0
set display mode 800,600,16,1
sync on
sync rate 0
set ambient light 50
position light 0,20000,10000,0
set light range 0,20000
load object "sec1full.x",1
position object 1,0,-200,0
phy make rigid body static mesh 1
load object "sinkhole.x",2
position object 2,0,-200,0
phy make rigid body static mesh 2
load image "ball.bmp",10
for n=10 to 10
make object sphere n,10
texture object n,10
SET SHADOW SHADING ON n
`position object n,0,rnd(150)+160,0
position object n,0,600,0
phy make rigid body dynamic sphere n
phy set rigid body mass n,100
next n
position camera 0,320,-50
point camera 0,0,0
max=0.5
mode=1
phy update 0
do
phy update 1
position camera object position x(10),object position y(10)+500,object position z(10)+100
if inertiaforward#>max
inertiaforward=max
endif
if inertiasideward#>max
inertiasideward=max
endif
if upkey()=1
phy add rigid body force 10,0,0,150,mode
endif
if downkey()=1
phy add rigid body force 10,0,0,-150,mode
endif
if rightkey()=1
phy add rigid body force 10,150,0,0,mode
endif
if leftkey()=1
phy add rigid body force 10,-150,0,0,mode
endif
set cursor 0,0
if spacekey()=1 and rep=0
rep=1
phy add rigid body force 10,0,200000,0,mode
endif
if scancode()=0 and rep=1
rep=0
endif
phy update 0
sync
loop
I also added asynchronous updates. It runs fine without it, but you'd might as well have it, I suppose.
Come see the WIP!