Hi!
So i dedicated to test Dark Physics, and after a 5mins i got this code
Sync on
sync rate 0
phy start
autocam off
set display mode 1280 , 1024 , 32
load image "texture.jpg", 1
load image "detail.jpg", 2
make object terrain 1
set terrain heightmap 1, "map.bmp"
set terrain scale 1, 3, 0.6, 3
set terrain split 1, 16
set terrain tiling 1, 4
set terrain light 1,1,-0.25,0,1,1,0.78,0.5
set terrain texture 1, 1, 2
build terrain 1
global ff = 1
make object cube 2,10
make object cube 3,10
make object cube 4,10
make object cube 5,10
make object cube 6,10
for i=2 to 6
y = 100
position object i, 100,y + 5 * i, 100
next i
phy make rigid body dynamic box 2
phy make rigid body dynamic box 3
phy make rigid body dynamic box 4
phy make rigid body dynamic box 5
phy make rigid body dynamic box 6
phy make rigid body static terrain 1
make object sphere 50,10
do
yrotate object 50, object angle y(50) + mousemoveX()
xrotate object 50, object angle x(50) + mousemoveY()
rotate camera object angle x(50),object angle y(50),object angle z(50)
if keystate(17) then move object 50,3
if keystate(31) then move object 50,-3
position camera object position x(50),object position y(50), object position z(50)
if spacekey() then spawnbox()
text 0,00,"X : " + str$(object position x(ff))
text 0,15,"Y : " + str$(object position y(ff))
text 0,30,"Z : " + str$(object position z(ff))
phy update
update terrain
sync
loop
function spawnbox()
ff = find free object()
make object cube ff,10
phy make rigid body dynamic box ff
position object ff, camera position x(),camera position y(), camera position z()
wait 500
endfunction
the problem is, when i spawn a box, it just flyes right away with great speed! and the only comment i have to this atm is "Omg, boxes with sppedhack "...
Any help to get?
(btw, the terrain is setup using adv. terrain)