Skip to content

Use-cannon and Socket.io ? #74

Answered by codynova
Franckapik asked this question in General
Discussion options

You must be logged in to vote

Rather than send events (key presses) across the network and calculating the results in each client, you should run cannon-es on the server. Send the events to the server, let it calculate the results, then distribute those results back to the client.

Be aware that there is currently ([email protected]) a small bug with running cannon-es in Node, which I'm going to try to look at today: pmndrs/cannon-es#23 (comment)

EDIT: I should have mentioned that the current implementation of use-cannon does not support using cannon-es in this way.

Replies: 7 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by codynova
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Franckapik
Comment options

@codynova
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #74 on May 06, 2020 15:17.