Crate bevy_xpbd_2d_interp
source ·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§
- Sets up the XPBDInterplationPlugin.
Structs§
- Does not store the actual interpolated position value, but instead the cached position from the previous physics update and the entity holding the
Position
affected by aRigidbody
. The interpolated position value is automatically given to theTransform
of any entity with aInterpolatedPosition
. - 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 theTransform
of any entity with aInterpolatedRotation
. - System set running in
PhysicsUpdate
beforePhysicsStepSet::BroadPhase
Enums§
- System set running in
PostUpdate
betweenPhysicsSet::Sync
andTransformSystem::TransformPropagate