What is the Best 2D Physics Engine for a Real-Time Simulation Program?

Click For Summary
For developing a 2D program that incorporates simple physics, the choice of physics engine is crucial, especially for achieving real-time performance at 30 fps on standard home computers. The focus is on simulating 2D soft bodies using springs and incorporating a basic fluid drag model without turbulence considerations. Efficiency is key, as the goal is to handle a large number of objects within the simulation. C# is the preferred programming language, although alternatives in non-dynamic languages are also acceptable. Unity is suggested as a viable option due to its robust physics engine, which has been successfully used in previous projects, such as simulating environments like the Marianas Trench.
omerAF
Messages
3
Reaction score
0
Hello!

I'm trying to write a 2D program that uses simple physics. I was wondering what would be the best 2D physics engine to use in my case, and if it even matter what engine I choose. I also want my simulation to run in real time, so at least 30 fps on a decent home computer. I prefer a fast physics engine over a precise one.

In my program, I would simulate 2D soft bodies made from springs, and how they are affected by fluid drag. The fluid drag model would be as simple as possible, and would not consider turbulences. However, I want my simulation to have as much objects as possible, so I need my code to be fast and efficient.

By the way, I have experience with c# programming, so that would be my to go language. If not c#, so any other non-dynamic languages, as I really don't like the dynamic ones (but if you have an amazing physics engine working with a dynamic language, I wouldn't resist).

Thank you for your time!
 
Last edited:
Technology news on Phys.org
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...

Similar threads

Replies
10
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
562
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 5 ·
Replies
5
Views
662
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 29 ·
Replies
29
Views
8K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K