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
Hello!
I'm quite interested in working on a rollback netcode project using Rapier, since it has a deterministic component. Godot's own physics are not great for this, but apparently according to this person, they were able to get a similar effect by controlling Box2D. godotengine/godot-proposals#2821 (comment) I was wondering if a similar effect could be enabled with this, especially if the determinism feature flag could be enabled.
The text was updated successfully, but these errors were encountered:
To enable determinism you just need to replace the "simd-nightly" feature with "enhanced-determinism" in rapier3d/Cargo.toml.
For complete determinism serde-serialize or cloning the Space state may be necessary though simply saving & restoring state using GDScript may also be sufficient. It is likely that not all necessary info for full determinism is visible to the GDScript side though.
Manual stepping should be as simple as exposing the existing step method in Godot.
Thank you for the quick response! It would be really cool if we could get determinism working with godot, as it would allow for lockstep networking and rollback netcode solutions to both work. Right now, most rollback solutions rely on sending state, which isn't as efficent.
ValorZard
changed the title
Are we able to manually step the rapier3d world/enable determinism?
Are we able to enable determinism?
Jun 25, 2021
Hello!
I'm quite interested in working on a rollback netcode project using Rapier, since it has a deterministic component. Godot's own physics are not great for this, but apparently according to this person, they were able to get a similar effect by controlling Box2D. godotengine/godot-proposals#2821 (comment) I was wondering if a similar effect could be enabled with this, especially if the determinism feature flag could be enabled.
The text was updated successfully, but these errors were encountered: