struct
PhysicsSystem::FBodyInterp
Physics→render interpolation: the fixed-step sim advances in 1/60 chunks while the frame time is variable, so dynamic bodies would judder at any refresh ≠ 60. Every dynamic body keeps its previous and current physics transform; SyncFromPhysics writes the render transform as a lerp/slerp between them by alpha = accumulator / fixedTimestep. The simulation itself is untouched — only the rendered pose is interpolated. Kinematic/static bodies and character controllers are authoritative and never interpolated.
- Module
- Physics
- Header
#include "Physics/PhysicsSystem.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
Vec3 | prevPos | |
Vec3 | currPos | |
Quat | prevRot | |
Quat | currRot | |
bool | active | Captured with the poses so SyncFromPhysics never asks Jolt — under the async tick Jolt may be mid-step when the render pose is written. Default true. |
Generated from Physics/PhysicsSystem.h via physics.json · Nov 4, 2026Version 1.0.0