How can I get accurate physics?

I’m making a game and the physics collision are very important and needs to be very accurate.

I try it with substepping enabled, but sometimes they have a strange behavior.

What is the best configuration to get accurate physics?

Thanks!