You might be interested in this post: http://www.pascalgamedevelopment.com...ll=1#post52894

and perhaps a few above it