Search found 6 matches

by TMNCorp
Wed Feb 07, 2018 7:02 am
Forum: General Discussion
Topic: Lots of static bodies
Replies: 3
Views: 489

Re: Lots of static bodies

You have answered your own question already. There are convex shape algorithms online that can help you splitting your tilemap in as few single convex shapes as possible. Other then that, I noticed that dyn4j is mixing static, kinematic and dynamic objects. So there is certainly an overhead involved...
by TMNCorp
Wed Nov 22, 2017 7:14 pm
Forum: General Discussion
Topic: Does dyn4j use multithreading?
Replies: 6
Views: 1669

Re: Does dyn4j use multithreading?

I have evaluated multiple 2d engines about two years ago, including but not limited to chipmunk2d (C) or some exotic ones like Nape written in Haxe. They all come with pros and cons regarding their functionalities and performance but for most it already starts with their source code, API and interop...
by TMNCorp
Tue Nov 21, 2017 9:21 pm
Forum: General Discussion
Topic: Bad Performance
Replies: 18
Views: 2891

Re: Bad Performance

I'd hate to see a nice codebase like dyn4j be polluted with object pooling. Doing that is extremely inadvisable on modern JVMs. I'd actually advise going the other way: Use very short-lived immutable data structures as much as possible. While I am agreeing on that, this consensus of this topic was ...
by TMNCorp
Tue Nov 21, 2017 8:28 pm
Forum: General Discussion
Topic: Does dyn4j use multithreading?
Replies: 6
Views: 1669

Re: Does dyn4j use multithreading?

No it doesn't. You are going to have a hard time finding a multithreaded physics engine at all because of a variety of problems that are coming with it. Although, Keen Software House is currently working on multithreading Intel's "Havok" engine, you can look up their codebase on GitHub if ...
by TMNCorp
Fri Aug 05, 2016 11:35 am
Forum: General Discussion
Topic: Concave Shapes "impossible"?
Replies: 9
Views: 4101

Re: Concave Shapes "impossible"?

Thank you very much for your answer. This explains it very well. I am aware of the method to split a non-convex shape into multiple convex ones. It is not an option with this shape as it would create (in worst case) exactly 524.288 single convex shapes. I tried that before with LiquidFun but the sys...
by TMNCorp
Thu Aug 04, 2016 1:49 pm
Forum: General Discussion
Topic: Concave Shapes "impossible"?
Replies: 9
Views: 4101

Concave Shapes "impossible"?

Hello, I have used several physics engines before (LiquidFun, JBox2D, Chipmunk2D and Nape) and I know that none of them support concave shapes. The actual question is: Can I write my own concave shape by implementing the Convex interface? I have a solely mathematical based complex concave shape (inc...

Go to advanced search