i guys i have a bullet with a collider and a rigidbody that when collide with a enemy it deal dmg and it must continue his path , but when collide with the body with the collider and the rigidbody of this enemy he stop, so i said to c# that on collision enter with this enemy it change layer and do dmg and i set his velocity, “a layer that dont have collision detection with the enemy”, it’ ok , but he must return on his original layer when he go out of the collider, and with a layer that have no collision dection this can’t happen, so it deal dmg to the enemy but dont do at the next enemys,
in pratice, this must be a bullet that do dmg on enter collision, go straight and next come back in the direction of the creator’bullet , i changed layer for dont stop the bullet’s phat, but in this way dont work, any tip for make this?
p.s sry for my english i hope you can undurstand me
If I understand this question correctly… you want your bullet to go through the enemy , change direction, and come back towards the player?
First of all, if the bullet is stopping when it first collides with an enemy, your code is explicitly telling it to do that somewhere.
I think it would be beneficial if you posted the code you are talking about.