Companion

object Companion

The companion object of MassProperties.

Functions

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

Generates the MassProperties with the specified shape and density.

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

Generates the MassProperties instance with the specified shape and mass.