anyone? sorry to bump but I haven't been clearly answered.
Here is the code for what it is worth
[/code]
Rem Project: raverdavesphysxtest
Rem Created: Friday, January 15, 2010
Rem ***** Main Source File *****
phy start
autocam off
sync on
sync rate 120
global shooter
global mx
global my
global power
color backdrop 0
position camera 0,80, -40
`make object box 1, 50, 1, 50
load image "sman.bmp",1
`load object "tit2.x",1
load object "room.x",1
position object 1,0,-20,0
`scale object 1,10,10,10
phy make rigid body static box 1
shooter=80
power=3
max=13
for n=6 to max
make object cube n, 5
texture object n,1
position object n, 0, n*10, 0
phy make rigid body dynamic box n
next n
for n=max+1 to max*2
make object cube n, 5
texture object n,1
position object n, 20, n*5, 0
phy make rigid body dynamic box n
next n
`position camera 0,10,0
`point camera 0,10,100
shot=50
count=2
do
if mouseclick()=1 and count>100
make object sphere shot,3
color object shot,rgb(255,0,0)
position object shot,camera position x(),camera position y(),camera position z()
set object to camera orientation shot
phy make rigid body dynamic sphere shot
phy add rigid body local force shot,0,0,200,0,0,1,2
count=0
inc shot
endif
inc count
mousecontrol(0.5)
phy update
sync
loop
function MouseControl(Speed as float)
`if mouseclick()=1 then move camera 0.5
if mouseclick()=2 then move camera 0.5
yrotate camera camera angle y() + mousemovex()*0.3/2
xrotate camera camera angle x() + mousemovey()*0.3/2
if wrapvalue(camera angle x(0))>100 and wrapvalue(camera angle x(0))<120 then xrotate camera 0,100
if wrapvalue(camera angle x(0))>180 and wrapvalue(camera angle x(0))<280 then xrotate camera 0,280
endfunction
[code]
Hail to the king, baby!