Threedy Posted December 27, 2017 Share Posted December 27, 2017 Hello there, For the record: I am posting this in BabylonJS since this is the best HTML5 3D game engine for the web and I'm questioning some of its physics engines and their use on the server. I was wondering what the state is regarding (JavaScript) 3D physics engines and the possibility of running the physics on the server (to make the server authoritative). The current state of physics engines seems to lack either performance or functionality. I have tried running CannonJS using NodeJS, and while it was OK for 4-5 clients, it became quite poor afterwards (even though I used simple and few geometry). Oimo.js doesn't have any collision callbacks as far as I've read, and Energy.js's release seems to be quite far away. Another question: it seems that the popular webgames you see on the web are being ''hijacked''. By that I mean that the client code is stolen and are being run on a different server where they make profit. This for instance happened with Agar.io. To counter this, you should preferably run a few things on the client and the majority of the other stuff on the server. However, if a game has physics, I imagine this wouldn't work out so well since it may stutter or feel unresponsive. Does anyone have knowledge of this or can share his/her experience? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 27, 2017 Share Posted December 27, 2017 1 hour ago, Threedy said: For the record: I am posting this in BabylonJS since this is the best HTML5 3D game engine for the web and I'm questioning some of its physics engines and their use on the server. Best intro ever We do not support directly physics engine but we offer integration. Regarding these engines performance I'm not sure how to help. Perhaps using Emscripten versions? With webassembly or asm.js, it could be faster. Regarding your question about client code hijacking, I tend to agree with you, the best way to protect your code is to not share it So server side is a good option Threedy 1 Quote Link to comment Share on other sites More sharing options...
Threedy Posted December 27, 2017 Author Share Posted December 27, 2017 Thank you Deltakosh. That is actually a good idea. I haven't tried Emscripten versions yet (e.g. AmmoJS). I shall do this when I have time in the next few days! Thanks GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.