Trigger Collisions Problem

I’m working on a project that has little information points. I’ve got an object (with a trigger/collider), that you run into to launch a data panel. I’ve got it working, but after you close the data panel, you’re still right there in/on the collider object. So, it tends to relaunch the data panel if you do anything but slide straight backwards.

I want people to be a able to come back to the information point and launch the data panel again, so I don’t want to destroy it. I suspect this problem has been solved by someone else; What are some solutions that y’all have used or you think might be a good solution to this problem?

if i have understand this right the player can close the panel and then the panel reopens because you are still inside the trigger.

try this

function OnMouseEnter (some object) {
    if (openpanel == true) {
       //openpanel
       openpanel = false;
}  
function OnTriggerEnter* (something) {
   openpanel = true;
}
function OntriggerExit (something) {
   openpnel = false;
}

*think you have set that to OnTriggerStay

Hope it will help[/b]

You wouldn’t want to use OnTriggerStay because that fires every frame you’re in the trigger. You only want it to happen once (until the trigger is left), so OnTriggerEnter is correct.

–Eric