[LibGDX] I'm having trouble understanding PPM with Cameras and Box2D

As the title states, I’m having trouble grasping the concept of having a global PPM for the game. All that I understand so far is that Box2D units are in metres, and everything else is in pixels. So does this mean I only need to divide units by a PPM if I’m working with Box2D?

Also, I have seen a lot of different PPM responses online, where some people divided pixels by a PPM in their viewport, etc.

I am a total noob when it comes to this, so all help is welcome!

Thank you

Hi,

there is a great article on pixels. It covers box2d and the examples are done with LibGDX.

To be fair, this article doesn’t answer your question.
There are some people who use pixels and PPM and others that deny using them. The author is one of the latter.
Personally, I used to use pixels and PPM, but in my current project I am following this “new” approach.

EDIT:
“new” approach means using meters instead of pixels as the article suggests.

Thanks for the reply.

I was wondering, what is this ‘new’ approach that you are currently using for your project?

Cheers

Oh sorry, my sentence was quite confusing. I am using meters instead of pixels for my current project. This is just new for me since I’ve been using pixels until now.