Hacker News new | ask | show | jobs
by dom96 31 days ago
Funny to see this just a few days after I’ve started building a Tron-like 3D game for the browser using Jolt[1]. So far Jolt is working pretty well but I’ll certainly be taking a look at this.

1 - I’ve been sitting on this domain for years: https://lightcycles.io

1 comments

About Jolt, do you mean https://github.com/jrouwe/JoltPhysics ?
Yep, there is a WASM build with full feature support: https://github.com/jrouwe/JoltPhysics.js
I open sourced a wasm build that has better typescript support here:

https://github.com/snackdotgame/jolt-ts

I also have an open source character controller for it

https://github.com/snackdotgame/jolt-ts-character-controller

I'm a big fan of jolt because they have a more incremental way of snapshotting physics state which really reduces the amount of serialization and memory you have to do if you want to implement deterministic netcode.

Nice, thanks for sharing! I'm definitely hoping to make use of the determinism for my netcode, if you have any useful write ups about that I'd be interested to read more.
Nice! JoltPhysics.js is quite finicky with typescript, having to have global variable Jolt of type Jolt and using that as a namespace.