Mesh points are relative to the position, angle and size of the object. That can be useful or inconvenient depending on what you want to do.
If the sprite isn’t rotated then this should work to get an x,y position on the layout converted to a mesh point location.
MeshX = (x-sprite.x)/sprite.width
MeshY = (y-sprite.y)/sprite.height
Much appreciated? What if it is rotated?
What I'm trying to do is create a sort of cursor made up of a circle that follows the mouse and a kind of beam that is fixed to the player but has it's width set to the distance between them and the cursor, which it is always pointed towards. I thought it would be nice to use meshes to ensure that the end corners of the beam are always set to the height of the cursor. (apologies if the explanation doesn't make sense)
Is this not possible since the beam will almost always be rotated?