collision not registering

i have a object which if colliding with another object should destroy the other object
it clearly does collide, but it doesnt register

the object is very thin, but i havent had any problem with that before

it does collide and im convinced theres nothing wrong with the code

help please

it does register collisions with other things
maybe it doesnt count as a collision if both objects are not moving or something

no thats not it either

If you are sure the code is right then double check the setup of the collider (sometimes people forget to add it or set it to an incorrect size).

Did you use a Debug.Log or print to make sure the collision is taking place ?

thanks for your reply

nothing was wrong with the code, just forgot to add rigidbody to one of the objects
dont know why it is necessary though, but at least i know its needed to make it work now

yes i did that too, and it completely failed to register

but i know it was the rigidbody now

also thanks for your reply :slight_smile: