Create physical engine. Create collision detection and response.
Optimization:
Need to test bodies distance in separate thread. If two or more bodies are too close to each other than test this bodies to collision.
Log in to post a comment.
Optimization:
Need to test bodies distance in separate thread. If two or more bodies are too close to each other than test this bodies to collision.