A shot in this Godot tactics game can break through cover, splinter bone and leave a soldier bleeding after the turn ends. Here’s how the simulation works.
In
Late_Pass_9333’s Godot tactics game, you command a small squad of mercenaries. There’s no health bar to chip away at. Every shot is traced through the world, and what it hits determines whether someone can keep fighting.
Both sides plan their moves, then up to five seconds of combat play out together. The simulation advances in 0.1-second steps, following each bullet through wind, drag and drop until it hits something.
Cover can change under fire. Walls are divided into 5 cm cells, and bullets wear them away according to the material. Repeated hits can open a small firing hole, then a larger breach.
A body combines simple shapes for limbs, bones and most organs with anatomical meshes from
BodyParts3D.
Preparing those meshes took work: the developer repaired 2,234 source meshes into 945 closed pieces so bullets could pass through them reliably. In current tests, tracing a shot through a whole body takes around 17 microseconds.
As a bullet passes through tissue, it loses energy. Bone can deflect it or break into splinters, which follow their own paths and can cause more wounds.
Those wounds feed a model that updates once per second, tracking bleeding, oxygen, pain, shock and consciousness. A soldier might keep shooting after a hit, then collapse later from blood loss.
The visible wounds use the simulation’s entry point, size and direction, so they appear where the shot actually went.
The calculations run in plain C#, separate from Godot. Godot displays the result, while Jolt handles ragdolls and debris.
Each random choice is tied to the starting seed, turn, actor and action, so the same orders produce the same fight when replayed. Ragdolls are recorded the first time they run and played back when you rewind.
You can see the project and its source material here:
Interested in game dev math and shaders?