Hi, I want if someone can explain to me how to make an enemy or entity is THROUGH, for example suppose there are 4 enemies placed one after the other, when I shoot the bullet should kill only 3 of them as the same shoot ,because the bullet is losing power to passing through each of the enemies, or if these enemies were behind glass
you can use multiple traces with a penetration value which decreases on every impact and if it's smaller than 0 there's "no power left".
shouldn't be too hard...
you can also go further and add a random angle to the next trace on impact to simulate bullet spread. And you can use multiple traces to measure how long the bullet travels through an object and decrease the energy based on this.