Get more detailed updated on Tumblr:
https://www.tumblr.com/hullbreachgame
#gamedev #godot #3d #destruction
#gamedev #godot #3d #destruction
From there, the next step (and update) will be advanced destruction!
From there, the next step (and update) will be advanced destruction!
4. 'Shift' the below points to those intersection points
5. Construct the cut face using the 'normal' (facing direction) of the cut
This is still simplifying a bit, as this only mentions 1 side, but as stated it's a bit of a nightmare.
4. 'Shift' the below points to those intersection points
5. Construct the cut face using the 'normal' (facing direction) of the cut
This is still simplifying a bit, as this only mentions 1 side, but as stated it's a bit of a nightmare.
So elaborating further on how it works:
1. Get the points above and below the plane.
2. Get the 'broken' tris (ones connecting above and below points)
So elaborating further on how it works:
1. Get the points above and below the plane.
2. Get the 'broken' tris (ones connecting above and below points)
Well it gets a LITTLE more complicated than that.
Well it gets a LITTLE more complicated than that.
I'm pleased to report that the answer to that is... extremely well! Even with rapid, repeated slices on the same mesh, there is no noticeable change to performance. It remains to be seen how the advanced version will be, but hey!
I'm pleased to report that the answer to that is... extremely well! Even with rapid, repeated slices on the same mesh, there is no noticeable change to performance. It remains to be seen how the advanced version will be, but hey!
(Full Post Here: www.tumblr.com/hullbreachga...)
#gamedev #godot #3d #destruction #hullbreach
(Full Post Here: www.tumblr.com/hullbreachga...)
#gamedev #godot #3d #destruction #hullbreach
Step 2. Create a plane going along one edge of the hole.
Step 3. Get all the points of the object above that plane and reconstruct it.
Step 4. Repeat 2-3 until you're done.
Sounds easy enough-- but working with meshes can be a bit of a pain!
Step 2. Create a plane going along one edge of the hole.
Step 3. Get all the points of the object above that plane and reconstruct it.
Step 4. Repeat 2-3 until you're done.
Sounds easy enough-- but working with meshes can be a bit of a pain!
This consists of, effectively, slicing up an object with a bunch of planes into smaller objects.
The gif for this process is available on the Tumblr post which will be linked at the end of the thread.
This consists of, effectively, slicing up an object with a bunch of planes into smaller objects.
The gif for this process is available on the Tumblr post which will be linked at the end of the thread.
That doesn't really work here, as the goal is that you can really open a breach ANYWHERE.
That doesn't really work here, as the goal is that you can really open a breach ANYWHERE.
Stage 1 of destruction involves actually creating some methods for destruction in Godot!
Stage 1 of destruction involves actually creating some methods for destruction in Godot!