GridGraph Changes - Collision Testing options changed, no longer can use Ray Collision Testing with 2D physics

I was recreating my project with the latest update and ran into some issues with GridGraphs and 2D settings.

My Sprite collection is set to use 2D physics and the tiles with colliders use Polygon collider with the collider cap set to Front and back and they are convex.

In the previous update my Grid Graph was marked to use 2D physics and to do collison testing with rays with a height of 2 and an offset of -1. The mask was set to everything.

In the new update when I select use 2D physics the collision testing only allows point and circle and neither work for me right now. If I use circle the tiles with colliders get marked as not walkable, but so does each tile next to it regardless. Changing the diameter did not fix the issue.

I would prefer to use the new build, but right now I can’t. Is there anyway to get the Ray Collision Testing option back when using 2D physics in the new build?

Hi

The ‘Point’ mode is precisely the ‘Ray’ mode from earlier. It always used the Physics.OverlapPoint method call in 2D when the Ray mode was used, so I changed the name to Point to make it more descriptive. The height and offset never did anything in 2D mode.
What is not working if you use the Point mode? When you upgraded it should have changed your mode automatically to Point if you used Ray before, did it not do this?

I messed up! Thank you! Upon further review of settings, I had not marked my tilemap(2D Toolkit, I heart your tool plus it) to use 2D colliders, which seems odd to me because the Sprite Sheet with the tiles is marked to use 2D colliders. Regardless, I missed the setting and point is working.

1 Like