I am looking to make a 2d platformer that has a heavy emphasis on movement- it is better to use the in built physics for its ease or code in another system to have more flexibility?

Help!

I love the physics engine, but I've encountered a problem with it- particulary the convex masks. I want to include surfaces with inward curves in the game, but the physics engine doesn't exactly allow that with its convex system- I could solve this by creating multiple objects to build up into one "inward curved ramp", but I fear this would prove to be very inefficient and, well, damaging performance wise as well. Would it be better to make a separate system apart from the physics engine for inward ramps, to build them out of multiple objects/instances, or to just be done with the physics system and make a separate system on its own?

Posted Dec 26, 2019, 1:23 AM UTC

12
oldmankcrtfm•

I can't see why you would use the box 2d physics for something like this at all. I'd want to build a movement system I had explicit control over how everything behaves so it could be tweaked to feel just how I wanted.

2
Almighty_Cow•

I agree. It's a bit of work to make, but worthile to get desired behavior.

1