I’m working on a 2D platformer project (think Super Metroid or Mario) and need height testing for my paths to simulate gravity. Problem is it appears to be grayed out when choosing “Use 2D Physics.” Is there some sort of workaround I can implement to do this? If I can get this and jump/fall links working in 2D, this library will do everything I need perfectly. Thanks for the help in advance.
Note I’m a bit of a newb with this library and I’m guessing that height testing normalizes the paths to emulate gravity. If I’m missing something please turn me in the right direction.
Grid graphs are not the best fit for 2D platformers, they make sense for 2D top down games, but not for platformers. Grid nodes are always aligned in a grid.
Point graphs are a better fit.
The documentation for how to make that work is a bit scarce however (i.e nonexistent), however you should be glad to know that in the update that I am preparing right now I am adding an example scene for a 2D platformer.
You can check out this tutorial in the meantime (it is slightly old, but hopefully that will not be a large problem):
http://www.rocket5studios.com/tutorials/make-a-2d-game-with-unity3d-using-only-free-tools-beginning-enemy-ai-with-a-pathfinding/
(they do apparently use a grid graph in a slightly hackish way, but it works so I guess everything is alright).
@aron_granberg Now I’m super excited for the update. I’ve been able to get it working how I want with a grid graph that performs some light post-processing at run-time for the moment. Probably a better way to do this, but it seems to be working efficiently enough for my scenes atm.