pmndrs / ecctrl

🕹️ A floating rigibody character controller
MIT License
530 stars 63 forks source link

multiplayer online functionality #57

Open golden-fruit opened 4 months ago

golden-fruit commented 4 months ago

I have a scenario where I need to implement multiplayer online functionality. I will use socket to synchronize players' state information to a local store named players: new Map(). Can I directly use this players data to drive the Ecctrl component for updates?

ErdongChen-Andrew commented 4 months ago

I think so. Someone had integrated ecctrl to their multiplayer system.

eugle commented 2 months ago

For the same requirement, how should I display other players? Should I use a map loop, and how should actions be handled?