Something like this after you press “1” on that page.
Only problem is, I’m not experienced enough at coding, nor do I know the math needed to implement something like this. I know that this isn’t exactly easy to do, so if someone offered me any help with this I’d gladly do an art for code exchange, but we can talk about that later.
The amount of bulge needs to be dependent on the mass of the object, and I also need to be able to set how dense the graph is.
A simple solution would be to create a plane and move the vertices with the mesh class.
You can find an example of this here
Let me know exactly what you need and I will code it for, if it is not too much work.
texture, I suppose, if you go with a mesh. You would create the plane with a 3d modelling app with say 20x20 vertices and apply a grid texture on it that is again 20x20. Maybe with some transparency. Hopefully it would look ok.
If you were using Vectrosity, you’d do something like this:
var gridSize = 50;
var gridMaterial : Material;
private var gridLine : VectorLine;
private var gridPoints : Vector2[];
function Start () {
gridPoints = new Vector2[ (Screen.width/gridSize * 2) * (Screen.height/gridSize * 2) ];
gridLine = new VectorLine("Grid", gridPoints, gridMaterial, 2.0);
// routine for making a grid using gridPoints here
}
function Update () {
// do cool math stuff with gridPoints here
Vector.DrawLine(gridLine);
}
Now all you have to do is replace the commented lines with actual code. Making the grid would be a quite simple nested pair of for loops, the other part would no doubt involve Input.mousePosition and, um, some math.