Struct BodyInertias
- Namespace
- BepuPhysics
- Assembly
- BepuPhysics.dll
Stores the local and world views of a body's inertia, packed together for efficient access.
public struct BodyInertias
- Inherited Members
Fields
Local
Local inertia of the body.
public BodyInertia Local
Field Value
World
Transformed world inertia of the body. Note that this is only valid between the velocity integration that updates it and the pose integration that follows. Outside of that execution window, this should be considered undefined.
public BodyInertia World
Field Value
Remarks
We cache this here because velocity integration wants both the local and world inertias, and any integration happening within the solver will do so without the benefit of sequential loads. In that context, being able to load a single cache line to grab both local and world inertia helps quite a lot.
Methods
ToString()
Returns a string representing the BodyInertias.
public override string ToString()
Returns
- string
String representing the BodyInertias.