There you go, does not flicker any more, changed a few bits to make it work in physx and have put a rem by the ones I have changed.
phy start
autocam off
make object box 1,1000,1,1000
phy make rigid body static box 1
make object cube 100,5
color object 100,RGB(255,0,0):rem added to see which one was which
position object 100,0,100,0
phy make box character controller 100, 0, 100, 0, object size x(100)/2, object size y(100)/2,object size z(100)/2, 1, 33.0,0:rem changed to make it the correct size
make object cube 10,50
position object 10,100,50,200
phy make rigid body dynamic box 10
sensitivity# = 0.5
sync on : sync rate 0
do
`x = object position x(100) : y = object position y(100) : z = object position z(100) :rem remove as it was make it flicker
position camera object position x(100),object position y(100)+camy,object position z(100)-50 :rem quick than finding then loading
`position object 100,x,y,z :rem << will not work in physx.
rotate camera object angle x(100),object angle y(100),object angle z(100):rem changed to work in physx
rem not need vvvvv
`point camera x,y,z
camy = camy+(mousemovey()/sensitivity#/2)
if camy < 3 then camy=3
OldCamAngleY# = CameraAngleY#
CameraAngleY# = wrapvalue ( CameraAngleY# + mousemovex ( ) * 0.4 )
phy set rigid body rotation 100,object angle x(100), curveangle ( CameraAngleY#, OldCamAngleY#, .4 ),object angle z(100):rem changed to work in physx.
if inkey$()="w"
phy move character controller 100, 50.0
else
phy move character controller 100, 0.0
endif
phy update
sync
loop
Dark Physics makes any hot drink go cold.