MassData

data class MassData(val mass: Float, val center: Vec2, val rotationalInertia: Float)

Mass data for a body. Computed from shape geometry and density.

Parameters

mass

The mass of the body, usually in kilograms

center

The position of the center of mass in local coordinates

rotationalInertia

The rotational inertia of the body about the local origin, usually in kg*m^2

Constructors

Link copied to clipboard
constructor(mass: Float, center: Vec2, rotationalInertia: Float)

Properties

Link copied to clipboard
Link copied to clipboard
val mass: Float
Link copied to clipboard