Detecting object inside an area.

I want to find out if an object is inside an area of the terrain. This area is bordered by another object that delimitates it and don’t necessarily have a simetric form. it’s like a fence, actually. This fence is made by the own player, so, it don’t have a prefab form and will change every game.

alt text

I think this may do the trick for you: