I am not sure why this is happening. I took the sample code from the codebase showing the "creation of objects and deleting them". It looked like it may have solved on of my bigger problems. However when I made a minor change from boxes to spheres it looks like the physics isn't working. Here is the spheres version and you can find the boxes version in the codebase by searching on physics I think its in the top five results.
` This code was downloaded from The Game Creators
` It is reproduced here with full permission
` http://www.thegamecreators.com
`********************************************************
`*** made by Sindore *** make & delete physics object ***
`*** do what you wont with this code have fun ***
`********************************************************
sync on : sync rate 60
cls
`*** set up screen display ***
set display mode 800,600,16
`*** set up camera ***
autocam off
position camera 0,40,-50
xrotate camera 25
phy start
`*** make floor ***
make object plain 1,1,1
scale object 1,10000,10000,10000
xrotate object 1,90
phy make rigid body static box 1
c = 2
ID1 as float
ID1 = 2
do
`*** randome numbers ***
randomize timer()
`*** update physics ***
phy update
`*** make object crate, box what ever ***
if ID1 < 500 and don = 0 then inc mnot
if mnot = 15
`load object "crate02.x",ID1
make object cube ID1,1
scale object ID1,50+rnd(150),50+rnd(150),50+rnd(150)
position object ID1,0,40,0
color object ID1,rgb(rnd(225),rnd(225),rnd(225))
phy make rigid body dynamic box ID1
inc ID1
mnot = 0
endif
`*** activate delete objects and physics ***
if spacekey()=1 or ID1 = 500 then don = 1
if don = 1
`*** delete objects & physics ***
for c = 2 to ID1
phy delete rigid body c
delete object c
next c
`*** reset delete values ***
don = 0
ID1 = 2
c = 2
endif
`*** number of objects ***
set cursor 0,0 : print "the number of objects: ";ID1
`*** delete values ***
set cursor 0,20 : print "on/off swich for (don): ";don
set cursor 0,40 : print "on/off swich for (don1): ";don1
set cursor 0,60 : print "on/off swich for (c): ";c
`*** print out controls ***
set cursor 0,570 : print "press space key to delete objects and rigid body physics"
sync
loop
phy end