generateByShapesAndMass

@JvmStatic
fun generateByShapesAndMass(shapes: List<ShapeResource>, mass: Float): MassProperties

Generates the MassProperties instance with the specified shape and mass.

Return

A MeshResource object generated.

Parameters

shapes

A list of ShapeResource defining the shape data.

mass

The mass in kilograms.