HTCVive

Hi, Noob here but have been using teleport to walk around and want to open door as the camera rig enters the colider and open the sliding door. All works as i have attached a cube (Player tag) to the front of the controller. All works well except when the teleport beam goes beyond the door colider it closes even though the controller is still in the door zone.
Using on trigger enter and exit.

So what i want to do is as i walk around as i approach a door it opens and when i actually leave the area it closes, and not be closed by the teleport beam looking around.
Any assistance gratefully accepted.

Thanks

Use a LayerMask or Tag to filter things that enter the trigger, or exclude the teleport thing from the Physics Collision Matrix with the door trigger.

void OnTriggerEnter(Collider other)
{
    if (other.gameObject.layer == "teleportThing") return;
}

LaneFox Thank you for your reply and pointing me in the right direction. I was able to figure out the Physics Collision matrix and got thing to work as desired.

Regards