Try something like this:
`camera setup, no need to make a camera 1 unless you want more than 1
`you can use the default camera 0
sync on
sync rate 40
hide mouse : autocam off
position camera 25,50,-50
point camera 0,0,0
`make sphere for player
make object sphere 1,5
position object 1,0,0,-50
sc_setupobject 1,1,1
sc_setobjectcollisionon 1
`make box to simulate world
make object box 2,25,25,25
sc_setupobject 2,2,2
sc_setobjectcollisionon 2
`main loop
do
`capture the old sphere position
oldx# = object position x(1)
oldy# = object position y(1)
oldz# = object position z(1)
`move the sphere
if upkey()=1 then rotate object 1,0,0,0 : move object 1,1
if downkey()=1 then rotate object 1,0,180,0 : move object 1,1
if leftkey()=1 then rotate object 1,0,270,0 : move object 1,1
if rightkey()=1 then rotate object 1,0,90,0 : move object 1,1
`capture the new position
x# = object position x(1)
y# = object position y(1)
z# = object position z(1)
`see if it hit anything and calculate sliding data
collide = sc_sphereSlide(0,oldx#,oldy#,oldz#,x#,y#,z#,2.5,1)
`if it did hit then position the object by the feedback data
if collide>0
position object 1,sc_getCollisionSlideX(),sc_getCollisionSlideY(),sc_getCollisionSlideZ()
endif
`update the object's data in the collision system
sc_updateObject 1
`update the changes to the screen
sync
loop
end
`command needed for the collision dll to run
delete memblock 1
