Shild and Damage Effects (Blender Geometry-Nodes)
A Blender file with Geometry-Nodes (GN) utils to simulate firing guns that affect a mesh (e.g. surface damage, sci-fi shield).
Have questions or want to share your results? Reach out on Twitter/X or Threads
Requires Blender >=5.0.
The "gun" modifier takes an input geometry and simulates the various effects on it. As we need to modify the input geometry, this group will output both the gun/bullets and a copy of the geometry, so the original one should be hidden/disabled.
Bullets are shot from the position of the main camera, in the same direction it is pointing at.
The accuracy of the simulation depends mainly on the number of sub-steps and target mesh faces count/size. Higher values will give more precise results but will require longer computation time.
Additionally, speed and radius of bullets can also affect results, with lower speed requiring less sub-steps, while smaller radius requires more sub-steps.