I am trying to limit the camera position movements to specific areas defined by a 3D object/objects children. For example, if I had a walkway object on the ocean and I only wanted my user to be able to move the camera forward and backward on that walkway. Similar to a first person controller navigation mesh in Unity but without the AI aspects.
I would enjoy an AFrame based solution, but I do not mind writing a custom component if there is a THREE js solution.
Thank you!