Godot Version
4.6
Question
This is regarding 2D, mostly revolving around the usage of Sprite2D and Node2D+MeshInstance2D to build a world with an isometric perspective.
Each object in the world needs its depth-sorting handled carefully so that the character doesn’t “pop” behind or in front of it awkwardly.
Using Y-sort helps with this, but doing fine adjustments to the ‘anchor point’ that drives Y-sort is difficult. On Sprite2D there doesn’t seem to be a ‘set anchor point’ feature (this would adjust both the “offset” and the “position” simultaneously, allow you to adjust the anchor point without moving the object). Then when using Node2D with MeshInstance2D, we have the same problem where to adjust the anchorpoint I must first move the Node2D to the ‘y-sort anchorpoint’ location, and then apply the inverse transformation on the MeshInstance2D inside of it to bring it back to the same visual location.
I am curious if this rings any bells regarding better ways to author depth into objects - possibly using a solution other than Y-sort?
Thanks for any suggestions.
