Hey, I was wondering how you would completely disable collisions from an object (meaning it wouldn’t know if something enters its collider). I am open to any advice!
thanks, Sam.
disable it’s collider component.
1 Like
I have tried that, but it still seems to be triggering “OnTriggerEnter” statements.
This should not happen. I just tested this with a new script. Disabling the collider caused OnTriggerEnter to stop triggering.
public class TestOnTriggerEnter : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
GetComponent<Collider>().enabled = false;
}
private void OnTriggerEnter(Collider other)
{
Debug.Log("triggered");
}
}