Density

data class Density(val density: Double) : Collider.Mass

The mass properties will be calculated based on the shape's volume and the given density, with a default of 1.

  • Mass is calculated

  • Density is provided

  • Inertia tensor is calculated

Parameters

density

The density of the shape. Must be greater than 0.

Constructors

Link copied to clipboard
constructor(density: Double)

Properties

Link copied to clipboard