Lasers are hitting and bouncing but the gameobject doesn't disappear when shot

I even tried copying the code for the lecture perfectly

Hi,

Welcome back to our community! :slight_smile:

Have you already tried to add Debug.Logs to your code to see what is going on during runtime?

yes in fact it still triggers gameobjects even though they don’t have the enemy script.

including my terrian

and the lasers arn’t triggering anything but my ship does

Try to decrease the Kill Speed value in the Collision module to make the particles disappear when they collide with something.

https://docs.unity3d.com/Manual/PartSysCollisionModule.html

Is “Send Collision Messages” enabled? If not, enable it. Otherwise, your collision method won’t get called in the collision event.

If that didn’t make the suggested Debug.Log messages appear in your console, I would suggest to rewatch the video at least one more time. Maybe something is missing in your project.


See also:

2 Likes

yes it worked thank you for the help Nina

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms