Working on my first game! Woohoo!
I am a full stack web developer with some C# experience but looking for some advice on the proper way to do something.
What I am looking to do to help learn is make a metal detecting type of “game”. My thoughts are to just make a ton of gameobjects and put them below the terrain. Then when you walk over it with your metal detector I will play a sound or just output to the console for now. I want to get this functionality working correctly first.
Would it be easier to do this or possibly just to go based off X/Y/Z position of the player so there isn’t 100’s of gameobjects all over the place? I am not sure how to do this when it comes to performance.
Also would you use a OverlapSphere for distance? Say if I am standing over an object and my metal detector can see down 5 feet would that function be able to trigger a collision?
In addition to that the collision direction would just be up/down. Wouldn’t want to detect something at an angle.
As you can probably tell I am brand new because I am making no sense but any help is appreciated to help me get going in the right direction. I’m sure I can figure it out and make it work, but would rather learn the right way.