Updating physics in separate thread.

The physics is now updated in a separate thread. This allows huge amount of physical objects without frame drops.