is this what you were hoping for.
//BASIC
autocam off
sync on
phy start
sync rate 60
backdrop on
make camera 1
color backdrop 1,RGB(55,55,55)
//OBJECTS
make object cube 1,20
position object 1,0,0,30
phy make box character controller 1,0,0,0,10,10,10, 1, 10.5, 45.0
make object sphere 2,20
color object 2,RGB(255,0,0)
position object 2,0,0,5
phy make rigid body dynamic sphere 2
make object box 3,70,1,70
color object 3,RGB(0,0,255)
position object 3,0,-20,0
phy make rigid body static box 3
do
//INFO FROM PLAYER
` x = object position x (1)
`y = object position y (1)
`z = object position z (1)
` rotx = object angle x (1)
` roty = object angle y (1)
` rotz = object angle z (1)
//MOVEMENT
if upkey() = 1
phy move character controller 1,6
Endif
if downkey() = 1
phy move character controller 1,-6
Endif
if rightkey() = 1
//UPDATE PLAYER
rotate object 1,object angle x (1),object angle y (1)-3,object angle z (1)
phy move character controller 1,0.0
Endif
if leftkey() = 1
//UPDATE PLAYER
rotate object 1,object angle x (1),object angle y (1)+3,object angle z (1)
phy move character controller 1,0.0
Endif
//CAMERA
position camera 1 , object position x (1), object position y (1)+70, object position z (1)
point camera 1, object position x (1), object position y (1), object position z (1)
//FINSIHING STUFF
phy update
sync
Loop
Dark Physics makes any hot drink go cold.