How to find all physics bodies in the scene?

Is there a way to find all physics aggregates in the scene like i can find all meshes by getMeshByName()?

Something like that:

scene.meshes.filter(m => m.physicsBody);
2 Likes

Thank you very much