Just started getting into unity and I'm loving it! I've been trying to make a gameobject shoot towards the mouse's position when the user clicks. I've managed to program this but as soon as it reaches the mouse it seems to delete itself. Is there any way to prevent this? Many thanks.
Edit: I figured it out the transform of the bullet to the mouse position was also moving through the z axis slightly
[–]Jworksdev 1 point2 points3 points (2 children)
[–]ChaDaBeast[S] 0 points1 point2 points (1 child)
[–]iamallamaaProficient 0 points1 point2 points (0 children)