r/VoxelGameDev • u/Jules-dmvx • 5h ago
Media A grapple dozer built entirely in my voxel game: player-designed tracks, printed parts, physics joints
Heavy Metal runs on my own C++/Vulkan voxel engine.
I am building this game and voxel engine fully on my own, I made it from scratch in C++ with Vulkan, it is fully raytraced, with direct lighting from sun and emissives, Global Illumination using world space radiance probes and a whole lot of tricks to make all that dynamic and real time.
I also made the physics engine myself, it is based on Featherstone's Rigid Body Dynamics book, I wrote my own implementation of it and extended it to support arbitrary mechanisms and edits. I also added systems like ropes, chains, winches and other custom joint features.
I am making the diegetic UI (CRT screens) using RML and Lua, which is basically web development, I'm making the CRT looking apps there and it's then rendered by the raytracer directly on the body it's attached to.
Everything in the clip is built in-game and simulated directly:
- custom carriages: the tracks are designed by the player
- voxel parts drawn in the CAD (or directly on the machine), then printed
- parts welded and joined with simulated hinges and pistons
- per-voxel paint
- controls wired up, or programmed in code, with sensors for more advanced logic
Tbh the part I'm struggling the most with is finding ways to make building a machine as easy as possible, while keeping the freedom that this game kinda rests on.
The approach I'm taking is parametric prefabs for everything generic the player may want (pistons, wheels, arms, plates, lattice, beams, etc) and a CAD system where the player can build whatever he wants, so that there is simplicity and freedom available.
Making linkages can be tricky sometimes and I'm wondering if pre-made linkages would be interesting to have available or if it takes away the fun? 🤔
Any suggestion is very much welcome :)
Full build: https://youtu.be/aQqli2T7nik
Discord: https://discord.gg/xwFy4f6AxE