thanks a lot. it works fine now.

btw. very very nice piece of code...and dynamics simulation look
very nice.

btw2. do you think it would be hard to translate 2d algorithm to 3d ??
using opengl...