Table of Contents

Struct MeshSurfaceMassProperties

Namespace
Gravitas.Colliders
Assembly
Gravitas.dll

Stores deterministic uniform thin-shell mass properties for scaled mesh triangles.

public readonly struct MeshSurfaceMassProperties
Inherited Members

Properties

Area

Gets the scaled triangle surface area represented by this shell.

public Fixed64 Area { get; }

Property Value

Fixed64

CenterOfMass

Gets the shell center of mass in scaled mesh-local coordinates.

public Vector3d CenterOfMass { get; }

Property Value

Vector3d

InertiaReferencePoint

Gets the scaled mesh-local point about which the cached unit tensor is expressed.

public Vector3d InertiaReferencePoint { get; }

Property Value

Vector3d

UnitMassInertiaTensor

Gets the unit-mass thin-shell inertia tensor about InertiaReferencePoint.

public Fixed3x3 UnitMassInertiaTensor { get; }

Property Value

Fixed3x3

Methods

CalculateInertiaTensor(Fixed64, Vector3d)

Calculates shell inertia for the supplied mass about a scaled mesh-local reference point.

public Fixed3x3 CalculateInertiaTensor(Fixed64 mass, Vector3d localReferencePoint)

Parameters

mass Fixed64
localReferencePoint Vector3d

Returns

Fixed3x3