Reputation: 53047
Microphysics.js is a javascript library that creates a world with 3d spheres and AABB boxes, enabling acceleration and collisions. Is it possible and practical to synchrone a world hosted on a node.js server between clients using sockets.io? What are general guidelines for programming it, optimizing for low latency?
The simplest implementation I could think of is: send periodically information containing position, speed and acceleration of each object near the client, then adjust it for message arrival time (ping).
Upvotes: 0
Views: 165
Reputation: 2610
Yes basically you must have a live streaming data between clients with positions directions and everything that " moves ". Watching every object and sending every change of it to the other user is what you should be using.
I don't know how this could help you but good luck coding because you have some work to do.
Upvotes: 3