laserShredder not working : (

I’ ve just made my laserShredder for my laserdefender game but for some reason the laser just goes true whitout getting destroyed…
I’ ve checked everything I think…
Can somebody help me???
Thank you!!!

PS: I’ m using “unity 2017” and pictures below


Your method is:

void OnTriggerEnter ( )

But, your colliders are ‘2D’ colliders.

Therefore, your method needs to recognise it’s 2D collision it’s looking out for.

Try this method instead

void OnTriggerEnter2D ( )

1 Like

Privacy & Terms