generateByShapesAndDensity

@JvmStatic
fun generateByShapesAndDensity(shapes: List<ShapeResource>, density: Float): MassProperties

Generates the MassProperties with the specified shape and density.

Return

A MeshResource object generated.

Parameters

shapes

A list of ShapeResource defining the shape data.

density

The density.