-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document components and resources needed for rollback #478
Comments
Also |
I would suggest also adding If your game has a rollback to a frame that starts a pause, then the delta can still have an effect -- specifically |
Having On a rollback that triggers a component's If insistent on using |
@cscorley huh, I didn't think about it before, but that definitely makes sense. Good catch! |
For things like networking, it can be important to enable rollback for certain physics components and resources to avoid mispredictions. However, it can be unclear which components should be rolled back without good knowledge of engine internals.
Avian should have documentation listing stateful components and resources that can affect simulation behavior and are important for rollback.
List of components and resources
Below, I've listed the ones that come to mind.
Components:
Position
Rotation
LinearVelocity
AngularVelocity
ExternalForce
(if used, and only if persistent)ExternalTorque
(if used, and only if persistent)ExternalImpulse
(if used, and only if persistent)ExternalAngularImpulse
(if used, and only if persistent)Sleeping
(if sleeping is enabled)TimeSleeping
(if sleeping is enabled)CollidingEntities
(if used)Resources:
Collisions
(only if solver warm starting is enabled)You may also need to roll back
Transform
andGlobalTransform
, as changes to them can affectPosition
andRotation
either directly or through hierarchies.If you notice components or resources missing that are important for rollback, let me know :)
The text was updated successfully, but these errors were encountered: