Ok I just had a quick looksee and I saw that you had wait(1) in wrong places.

Also wait(1) is supposed to before c_setminmax(my) not after.

Try adding the wait(1) at the end of the process, unless you ment
for them to be that way.

eg:
while(1)
{
do some stuff here
wait(1)
}

Hope this helps..
There is a physics demo getting around, on acknex resource site.
Also have a quick look in the physics forum, some good tips in there
as well.

Good luck..


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus