How to project a 2D grid onto a TerrrainGrid/TerrainQuad

Hi guys,

I’m about to start a new project, a turn based strategy game. I decided the old game needed too much in the way of custom artwork/modelling that I could not afford at this stage, so I decided on a smaller scale project to be my first game out the door (if it ever comes out, lol!).

Anyway, I want to divide the terrain up into squares. I think I’ll have an in memory representation of the grid, and I dont think it would be too hard to convert from an X,Y coordinate to a square using ray collision. However, what I’m not sure of how to do is projecting a 2D grid overlay onto the terrain to make it easier for players to move their units. Any ideas? I think I need a line that follows the contours of the terrain for a certain axis, but I’m not sure how to create such a line.

Would appreciate any help.

The topic was discussed here

Thank you!