Destructible terrain Godot
Destructible terrain test in Godot, using the Geometry class. This is the simplest implementation possible so it might not be awesome in terms of performance.
Use your mouse to aim, left click to shoot, and mouse wheel to adjust the shooting force.
You can find the sources here.
And the video 👇
About me
📹 Main YT channel
📹 Godot related YT channel
🔗 All my links
You like what I do? You can support me on Patreon or Kofi

| Status | Released |
| Platforms | HTML5, Windows, Linux |
| Rating | Rated 5.0 out of 5 stars (3 total ratings) |
| Author | MrEliptik |
| Genre | Action |
| Tags | 2D, Destruction, Singleplayer |
Download
Download NowName your own price
Click download now to get access to the following files:
destructible_terrain_linux.x86_64 33 MB
destructible_terrain_win.exe 32 MB



Comments
Log in with itch.io to leave a comment.
good but is there a way to fix the lag spike every time terrain is hit or is that just my potato pc?
This is a simple example so it’s not optimized. You could run the calculation on a thread, while it would not lag, it could still look like nothing is happening for a while. The best technique is transform the one big polygon of the terrain into many small square in a grid, just like minecraft.
Hi, super late to it but I am trying to figure out how to make worms myself.
but I noticed that if you hit a worm in the head, ground is not clipped around it, that's by design?
no I guess it’s just a result of the fact I’m only doing the calculation if I detect I’m hitting the floor directly
thanks!
you can fly by being sideways and moving
Yeah probably but the goal is to showcase the destructible terrain, so I don’t think it’s a problem :)
Love it, ever thought of an archery version :-)
What would you change apart from the visuals? It seems very similar