ok, i need some help, i tried a few places and didn’t find what i was looking for, i need a script like this:
its on my camera, but checks if obj1, is colliding with an object with a certain tag
this is what i tryed:
void OnCollisionEnter(Collision retAdd){
if(retAdd.gameObject.tag == “BuildObject”)
{
print(“colliding!”);
}
retAdd is the object i want to chek if is colliding