how can i reposition say a ball that leaves the bottom of the screen, i have tried:
function reset()
baty#=-25
batx#=15
batvy#=24
position object 99,batx#,baty#,batz#
position object 300,batx#+1,baty#+2,batz#
phy set rigid body linear velocity 300,0,0,0
position object 300,batx#+1,baty#+2,batz#
phy update
endfunction
As you can see i even repeated myself, the object number is 300 and is set as a rigid body dynamic sphere ..
Also on another notem, when you delete an object from darkbasic, then recreate it,it seems all collision detection disappears, else i wouldve simply deleted all objects .
Here is a screenie to see what I am upto if it helps! :
300 is the ball of course, i simply want to reposition at the starting position, as shown, when it leaves the bottom of the screen.
Hail to the king, baby!