If one would recreate Ico (classic PS2 game) or something similar, how would you go about the camera? It is clearly not behind the player, it is much more cinematic. Did they predefine paths for it? Is there some greater magic at work? How would you implement this?
It’s probably on tracks, with some very clever code. I wrote some code for that for Botbuilder last year - it basically found the closest point along an array of points. Turned out pretty well. I should dig that up, enhance it, and post it sometime…
there is some good waypoint following code in the FPS example. That builds an array of WPs that then check off against each other to make sure that they link together with a clear line of sight. Then it’s just a simple case of picking one of those WPs and making your camera smooth translate from WP to WP. Obviously you’ll need a bit more logic in there for game specific problems.
The basics a definitely present in the FPS example that comes with Unity. Check there, and hack away.
God of War (1 and 2) used a similar camera system. These three games probably have the best camera systems ever invented.
PLEASE, OTEE, let us use REAL 3D PATHS. It is, as far as I can tell, NECESSARY to make one of the games I want to, and it would be a lot easier than waypoints anyway.