Xlinka / NeosPlus

NeosVR Plugin Extra Logix nodes and features
https://discord.gg/9QAaMtXwke
Other
29 stars 19 forks source link

Bepu - Rigidbodies simulation #55

Open Elektrospy opened 1 year ago

Elektrospy commented 1 year ago
DoubleStyx commented 1 year ago

I'd imagine the host would be the authority for the state of the rigidbodies. It would simulate the rigidbodies on its own side, sending the transform and momentum info to the clients. Each client would run their own simulation that receives networked updates from the host. These updates would correct any deviations in trajectory from the host's state.

I'd have to poke around at Neos' networking system. There's a lot of existing infrastructure we can repurpose.

epicEaston197 commented 1 year ago

I'd imagine the host would be the authority for the state of the rigidbodies. It would simulate the rigidbodies on its own side, sending the transform and momentum info to the clients. Each client would run their own simulation that receives networked updates from the host. These updates would correct any deviations in trajectory from the host's state.

I'd have to poke around at Neos' networking system. There's a lot of existing infrastructure we can repurpose.

what would happen if the host isn't present? I would imagine all rigid body simulation would freeze

DoubleStyx commented 1 year ago

It shouldn't matter since the host is still simulating the session.