I know this seems like a complete mess of a question but here goes:
I’m essentially created a simulation within silverlight as a programming exercise.
I have a semi opaque canvas that lives on top of a grid with 40 rows and 30 columns. I can place canvas object into the grid cells to change the colour to represent water, grass, sand or whatever.
I’m having my AI agents exist on the canvas however so that they can be moved smoothly across the surface and not in a jagged way which the grid would do.
Im just wondering if anyone has had any experience with accessing relative coordinate between canvas’s and grids. My grid cells are 5×5 where as the canvas points are obviously single digits between 0 and 400. Im just trying to find a way to collect up all the Shapes on the canvas, relative to their grid position.
Please feel free to ask further questions, I am aware it is not very clear.
Any help would be gratefully received.
You could still use the grid if you give your agents a RenderTransform. This way they still be inside your grid and can freely move.