Mass

interface Mass

Mass properties of a Collider, used in calculating forces and dynamics during the simulation.

Inheritors

Types

Link copied to clipboard
data class Constant(val mass: Double) : Collider.Mass

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

Link copied to clipboard
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.

Link copied to clipboard

The collider has infinite mass, and cannot be pushed at all.