- Home /
How to add holes to a mesh in game.
Hi guys, So I've been working on a 3D game, and there is an in game feature I want to implement somehow, which is that the players can add holes they can go through to certain parts of the level. For example if a player is in a building, on the second floor, then he can add a hole to the floor through which he can go. I've considered making preset areas, where this can happen, but I was curious if it is possible to add in holes anywhere. Any help is appreciated!
I don't have any magic solution, but did you consider using shaders ? Having some property in the shader of your floor that make the pixel transparent at certains coordinates ?
Answer by Kurdle_4855 · Apr 15, 2016 at 05:26 AM
Well, when a player 'digs' a hole, you could get the mesh's vertice position and literally cut a hole through it. The only problem is this might be a bit slow. If you don't know how to do this, google "Unity Procedural Meshes" or something like that.
Your answer
Follow this Question
Related Questions
Punching holes in a shield system 1 Answer
how to make hole on plane for ball to fall through 1 Answer
Integrating Leap Motion and the Crumple Mesh procedural example 1 Answer
Camera clipping planes : hidden planes when the transform position is too far 1 Answer
window placing inside a wall 0 Answers