batsman
September 5, 2013, 11:58am
1
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
cdevl
September 5, 2013, 1:34pm
2
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 ?
batsman
September 5, 2013, 2:39pm
4
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