You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to achieve deterministic networking with avian to avoid having any rollbacks.
I noticed that things work correctly when I replicate Position/Rotation and then sync them to transform (although this comes with its own sets of caveats) but that adding transform_to_position sync modifies the values very slightly and prevents determinism.
I'm not sure exactly what could be the cause:
Interpolation of Transform causes GlobalTransform changes in PostUpdate which might then get synced back to Position!
In PreUpdate I restore the non-interpolated value of Transform, but it looks like avian uses GlobalTransform for its transform_to_position sync so I might have to run another PropagateTransform system in PreUpdate!
Maybe there is a loss of precision in the propagate_transform set around hierarchies or in the Transform -> GlobalTransform -> Position + Rotation -> Transform chain. In particular the switch between Quat -> Mat3 -> Quat
I need to do more testing the cause is probably option 1)
The text was updated successfully, but these errors were encountered:
I am trying to achieve deterministic networking with avian to avoid having any rollbacks.
I noticed that things work correctly when I replicate Position/Rotation and then sync them to transform (although this comes with its own sets of caveats) but that adding
transform_to_position
sync modifies the values very slightly and prevents determinism.I'm not sure exactly what could be the cause:
Interpolation of
Transform
causesGlobalTransform
changes inPostUpdate
which might then get synced back toPosition
!In
PreUpdate
I restore the non-interpolated value ofTransform
, but it looks like avian usesGlobalTransform
for itstransform_to_position
sync so I might have to run anotherPropagateTransform
system inPreUpdate
!Maybe there is a loss of precision in the propagate_transform set around hierarchies or in the
Transform -> GlobalTransform -> Position + Rotation -> Transform
chain. In particular the switch betweenQuat -> Mat3 -> Quat
I need to do more testing the cause is probably option 1)
The text was updated successfully, but these errors were encountered: