How do i make a rigid body ignore a collider but still trigger it so the code goes off.
Have you tried setting the rigidbody’s collider to being a trigger?
function OnTriggerEnter(other : Collider){
Triggered = true;
}
This should do the trick. You only need to set up the variable.
Edit–
You need to set up a tag for the object. Go to “tags” on the desired object and set the tag to one of your choice. There should also be the option of adding new tags.
From there use this edited version of the script above.
function OnTriggerEnter(other : Collider){
if(other.tag == "tag"){
Triggered = true;
}
}