How to get all RigidBody in a scene?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DimitriyPS

How to get all RigidBody in a scene?

I need to get a list (access) of all the RigidBody in the scene. Before I “reinvent the wheel” I want to ask… is there a method that does this?