I started having this problem with the new dark physics upgrade.
Seems the limb position command does not work as soon as the object is off screen. Why?
Here is the code:
sync on: sync rate 60
phy start
make object box 1, 1,1,1
phy make rigid body dynamic box 1
do
set cursor 0,0
print str$(limb position y(1,0))
phy update
gosub _BASIC_CAMERACONTROLS
sync
loop
`//////////////////////////////////////////////////////////////////
_BASIC_CAMERACONTROLS:
if MOUSECLICK() = 1
key = 1
move camera 2.0
endif
if MOUSECLICK() = 2
key = 1
move camera -2.0
endif
CameraAngleY# = CameraAngleY# + mousemovex ( ) * 0.3
CameraAngleX# = CameraAngleX# + -mousemovey ( ) * 0.3
yrotate camera CameraAngleY#
xrotate camera CameraAngleX#
return
Thanks.