Getting started with SG Physics 2D and deterministic physics in Godot - good for rollback netcode!
Asked Answered
K

3

0

I've been implementing rollback netcode in one of my games, and one of the requirements for rollback is deterministic physics. Since Godot's built-in physics engine isn't deterministic, I built this little Open Source module.

Here's a short tutorial on how to get started using it:

https://www.snopekgames.com/tutorial/2021/getting-started-sg-physics-2d-and-deterministic-physics-godot

I hope others find it useful! :-)

Keef answered 13/12, 2021 at 15:51 Comment(0)
H
0

Very cool!

Hollyanne answered 13/12, 2021 at 15:55 Comment(0)
B
0

@dsnopek said: I've been implementing rollback netcode in one of my games, and one of the requirements for rollback is deterministic physics. Since Godot's built-in physics engine isn't deterministic, I built this little Open Source module. I hope others find it useful! :-)

Are you a genius? Also, I saw you wrote you didn't include rigid bodies. If it's online multiplayer, is it even possible to have rigid bodies bounce around deterministically?

Bournemouth answered 14/12, 2021 at 7:1 Comment(0)
K
0

@Erich_L said: Also, I saw you wrote you didn't include rigid bodies. If it's online multiplayer, is it even possible to have rigid bodies bounce around deterministically?

Sorry I didn't see this right away! I gotta make sure I have notifications setup correctly...

Yes, it is possible to have rigid bodies bounce around deterministically! I'd love to eventually get rigid bodies included in SG Physics 2D, because it'd be really cool to see what people build with it. :-) I haven't needed it yet, which is why I haven't already put it in.

Keef answered 24/1, 2022 at 16:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.