How would I check if a certain object collided with a certain trigger? I want the player to throw a cube off of the map, but I don’t want it to collide with a trigger I have below, I want it to collide with a certain trigger then be destroyed.
I figured it out, it was a very simple solution. If anyone else is having this problem, here is the code:
void OnTriggerEnter(Collider other) {
if (hit.transform.gameObject.name = "name") {
//write code here
}
}