Is there a way to enable 2d physics by code?

I am trying to create my grid graphs programmatically at run time, but I couldn’t find a reference to 2d physics in code. Am I missing it, or does it not exist?

Hi

Try

myGridGraph.collision.use2D

See http://arongranberg.com/astar/docs/class_pathfinding_1_1_graph_collision.php#a49ba648379789fb002460095e1c468a6

That did the trick, thanks!