init(shape:mass:)
Creates the mass properties for a solid shape with the specified mass.
Declaration
@MainActor @preconcurrency init(shape: ShapeResource, mass: Float)Parameters
- shape:
The shape for which to calculate the mass frame.
- mass:
The mass of the object in kilograms.