Hi there! Pretty much what the title says. The trigger is constantly switching to active and inactive so sometimes it fails to detect if it is triggered or not. Also I noticed that if I make the collider bigger it has a harder time detecting if it’s triggered or not. Any help is appreciated
///////////////////////////////////////////
bool Triggered;
void OnTriggerEnter(Collider Trigger)
{
if (Trigger.gameObject.CompareTag("Ball"))
{
Triggered = true;
}
else
{
Triggered = false;
}
}
void OnTriggerExit()
{
Triggered = false;
}
///////////////////////////////////////////