I'm having some trouble undetecting land for my ship. I have a long boat sailing with TranslateTo, and the player is free to move and do his tuff around the ship while sailing (with some hick-ups if too fast...). I'm trying to handle collision with land now, and for that purpose, I have a test trigger attached to the ship rigged to detect terrain. It works quite well, and as soon as the trigger box crosses terrain, the ship stops movement. I use the OnTrigger event and it triggers fine. What doesn't trigger are the OnTriggerEnter and OnTriggerLeave events. Neither does the GetTriggerObjectCount function work, as there really are no references inside the triggerbox. I suppose that the events don't fire because of the same reason.
So, my question is: Is there any way to detect if a trigger is triggering without OnTriggerLeave or GetTriggerObjectCount? At the moment I solved it by setting the variable that detects collision back to 0 in a fast OnUpdate event in another script, but this seems quite dirty and sometimes overrides the trigger... A workaround option is to let the player push the boat backwards and reset the variable manually afterwards, but that would work only with plain frontal collisions and not with lateral ones where the collision would only cause the ship to slide along the other object, like a dock... Also, a plain frontal collision at high speed could trigger the collision late, so it would be guesswork to find how far backwards the ship has to go until free of collisions.
I have read several topics dealing with this issue, and I know already that SLuckyD managed to solve this somehow (initially with a chicken...
