Constant

data class Constant(val mass: Double) : Collider.Mass

The mass properties will be calculated based on a fixed mass, in kilograms.

  • Mass is provided

  • Density is calculated

  • Inertia tensor is calculated

Parameters

mass

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

Constructors

Link copied to clipboard
constructor(mass: Double)

Properties

Link copied to clipboard