4 ms·
Thanks! The direct hooking into the narrow phase solver is the most performant way to go about it, but it does present several issues in state management. I di
by Genbox 10mo ago
Thanks!
The direct hooking into the narrow phase solver is the most performant way to go about it, but it does present several issues in state management. I did the same thing in Farseer Physics Engine, but also added high level events on bodies[1]. The extra abstraction makes it easier to work with, but due to the nature of delegates in C#, it was also quite a bit slower.
They could do with creating defaults for the narrow phase handler, buffer pool, threat dispatcher, etc. for devs who don't need extreme performance and just want a simple simulation.
[1] https://github.com/Genbox/VelcroPhysics/blob/ddf8292da6bc59ec5875a91f1d61f1523b4aab34/src/VelcroPhysics/Dynamics/Body.cs#L123 https://github.com/Genbox/VelcroPhysics/blob/ddf8292da6bc59e...
- neonsunset 10mo ago[dead]