I have been using axis drag gizmos a lot lately and have been doing one each on opposite sides of the mesh, which is a waste because one gizmo will work in both directions on a particular axis. It’s just nice to be able to grab it from the other side as well, especially if the arrow is on the other side of the mesh.
I looked at the source code and came up with the approach in this playground.
The gizmo has 2 transform nodes, one for the arrow and one for the arrow when it is hovered. The transform nodes each have 2 meshes, the arrow shaft and arrow head.
So I cloned the meshes, flipped them around, and attached them to the transform nodes. But the colors don’t transfer, even if I add them by hand.
Any ideas? Is there a simpler way to do this?
I know I can do this: gizmo.setCustomMesh(customMesh) but the direction does not change with the vector and the color does not change.