Expand description
Bevy XPBD Interp is a simple library for interpolation of bevy_xpbd rigidbodies.
It operates by interpolating between the position/rotation of the current and previous physics update based on how much time has accumulated since the last physics update.
The interpolated value is then stored in the Transform of some separate entity that may hold meshes/cameras etc.
Modules§
Structs§
- Interpolated
Position - Does not store the actual interpolated position value, but instead the cached position from the previous physics update and the entity holding the
Positionaffected by aRigidbody. The interpolated position value is automatically given to theTransformof any entity with aInterpolatedPosition. - Interpolated
Rotation - Does not store the actual interpolated rotation value, but instead the cached rotation from the previous physics update and the entity holding the ´Rotation´ affected by a
Rigidbody. The interpolated rotation value is automatically given to theTransformof any entity with aInterpolatedRotation. - Interpolation
Copy Set - System set running in
PhysicsUpdatebeforePhysicsStepSet::BroadPhase
Enums§
- Interpolation
Set - System set running in
PostUpdatebetweenPhysicsSet::SyncandTransformSystem::TransformPropagate