Struct BodyDynamics
- Namespace
- BepuPhysics
- Assembly
- BepuPhysics.dll
Stores all body information needed by the solver together.
public struct BodyDynamics
- Inherited Members
Remarks
With 2.4's revamp of the solver, every solving stage loads pose, velocity, and inertia for every body in each constraint. L2 prefetchers often fetch memory in even-odd pairs of cache lines (see https://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-optimization-manual.pdf#page=162). Since L2 is likely pulling in adjacent cache lines when loading either motion state or inertias, they might as well live together in one block. Note that this goes along with a change to the buffer pool's default alignment to 128 bytes.
Fields
Inertia
Inertia information for the body.
public BodyInertias Inertia
Field Value
Motion
Pose and velocity information for the body.
public MotionState Motion
Field Value
Methods
ToString()
Returns a string representing the BodyDynamics.
public override string ToString()
Returns
- string
String representing the BodyDynamics.