I am building firest person Firearm Simulator. When i fire bullet hall prefab showing on the target board.
this is my target
Hole prefabs sticking on the target board like red rounds. i need to get a range of the holes. need to get measured the holes on 4Inch, 6inch or 10-inch rounds.
First, you need to place a GameObject in the center of the target. Then you need to create a float variable for each circle that is equal to find how far away each circle is from the center. To do this, my suggestion is to copy and paste the center game object and move it to each circle on the x,y, or z axis and record how far away each circle is from the center. Once you have those numbers, you need to create an algorithm to find how far away the bullet is from the center. Finally, once you have how far away the bullet is from the center, develop a new algorithm to find between what circles the bullet is in. You will need to create an algorithm using if statements with greater than(>) and less than(<) values comparing the distance the bullet is from the center to the circles distance from the center to find what circles the bullet is between.