- Home /
Moving from A to B efficiently
How would I move a camera from point A to point B by the most efficient route?
I'm working on building a housing estate and would like the user to be able to select a particular address and for the camera to move along the streets to reach that address.
Answer by Jesse Anders · Dec 18, 2010 at 02:28 PM
Sounds like you're looking for 'pathfinding'. A standard solution for this is A* using a grid, navigation mesh, or waypoint system to represent the search space.
There's one or two pathfinding libraries available for use with Unity that you could probably use for this. Also, searching here and on the forums for 'pathfinding' or 'waypoints' should lead you to some useful references.
Your answer
![](https://koobas.hobune.stream/wayback/20220613091535im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
[Network] Serialize or not to Serialize? 1 Answer
More efficient Scripting. 1 Answer