The Density
property of the PhysicsBody
class returns the average density of all physics shapes associated with this body. The density is calculated based on the SurfaceMaterial
of each shape. This property is useful for understanding the overall material density of a physics body, which can affect its behavior in the physics simulation.