Thanks! That will help a little, Although I am at a loss as to why it is included in DB as standard with no help reference built in at all, apart from it just highlighting blue.
Anyway, if theres no support theres no support, I will just have to muddle through. i have played about with a fairly basic program to start. The familiar ball dropping program.
backdrop on
color backdrop 0
disable escapekey
autocam off
position camera 0,600,-200
`make object cube 1,10
make object sphere 1,10
color object 1,rgb(255,0,0)
position object 1,0,680,0
for n= 2 to 12
make object box n,200,10,200
position object n,0,(50)*n,0
next n
ODE start
ode create dynamic sphere 1
for n= 2 to 12
ode create static box n
ode set contact fdir1 n, 20.0
next n
`ode set world gravity 0,-1,0
`ode set world step 1
`ode set world quick step num iterations 100
`ode set gravity 1,1
`ode set gravity 2,1
`ode set body mass 1,1
`ode setsurface mode 2,0,0
`ode set contact 1,1,1
repeat
position camera camera position x(),object position y(1),camera position z()
ode set angular velocity 1,.001,0,0
inc y#,.00000000001
ode add force 1,0,0,0,0,0,0
ODE update
UNTIL escapekey()=1
ODE end
end
I have got this going but, the object works perfectly until it comes to rest. Then it falls through the object and loses it's collision on the rest. I have tried a few of the commands I have seen off your docs to solve this, but none have had any effect on it (stopping it falling through), the bounce etc was effected and such but always falls through when coming to rest.
What command if any am I missing here? I have Dark Physics too and never had this issue, unless it fell through because of it's collision check rate(can't remember the exact command name lol).
Any ideas? Oh one last question, the gravity doesn't seem to work unless I put in a command to apply a force of some kind in the loop. Even if it is 0. Seems odd to me. Again am I doing something wrong?
Edit - After playing a little more I can see it is not when it comes to rest, it is when it stops bouncing that it falls through the static object.
http://s6.bitefight.org/c.php?uid=103081