Custom Collision / Performance

Hi, a am developing 2D Game which uses currently ODE for Physics.
Now i concider switching to Box2D, can i expect a performance boost by switching from a 3D-Physics Engine to Box2D?

In my game i have a realy good collision management which lets ODE only test collisions if neccessary, can i test Collisions in Box 2D like this. I mean can i say Box2D to dont test collisions and only test what i want? ( collide(Body1,Body2) )
well if you mean collision filtering the yes...
Ok, but there is nothing like Collide(body1,body2) ?

And whats with the performance 3D Engine with 0 z-axis vs pure 2D Engine? Can i expect a Performance boost?
Grim wrote:
Ok, but there is nothing like Collide(body1,body2) ?
You could make a custom collision filter. You get a callback in the form of:
"ShouldCollide(shape1, shape2)" and return true or false depending on if the shapes should collide with each other.

Quote:
And whats with the performance 3D Engine with 0 z-axis vs pure 2D Engine? Can i expect a Performance boost?
If the rest of the features are the same, yes.
I dont think this is what i need. I will try to discribe my problem better:

My Game:
(more infos here)
Image

As you can see we have a realy big game world and you can zoom out to see the full planet.
But how can i collide my Objects with this planet in Box2D?

Currently i am using ODE and i am managing the collisions myself.
Let say i have a box which i want to collide against my planet.
So i get 2 points on the planets surface near the Box and create a plane with these 2 points, then i collide the box and the plane via the function dCollide of ODE.

How can i handle the collision bodys<->globe in Box2D?
Grim wrote:
How can i handle the collision bodys<->globe in Box2D?
If the globe is a perfect circle you could create a single circle body for it. Else you need to create a static body out of multiple shapes. Or maybe the thin line segments might help you: viewtopic.php?f=8&t=1437 but I never used that.

Original thread: https://box2d.org/forum/viewtopic.php?t=1514