MassProperties

Represents the mass properties of a rigid body.

Constructors

Link copied to clipboard
constructor(mass: Float = 1.0f, inertia: Vector3 = Vector3(0.1F), centerOfMass: Vector3 = Vector3(0F), orientationOfInertia: Quat = Quat(0F, 0F, 0F, 1F))

Constructs a MassProperties instance with default settings.

constructor(other: MassProperties)

Types

Link copied to clipboard
object Companion

The companion object of MassProperties.

Properties

Link copied to clipboard

The center of mass of the MassProperties object.

Link copied to clipboard

The inertia of the MassProperties object, measured in kilogram-square meters (kg·m²).

Link copied to clipboard
var mass: Float

The mass of the MassProperties object, measured in kilograms (kg).

Link copied to clipboard

The orientation of inertia of the MassProperties object.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String