I’m working on a game that asks the player to reassemble a sculpture that has fallen apart by dragging the sculpture’s sub meshes back to where they belong.
However I’m having difficulty understanding how to access the location of each mesh in the scene space.
What I’d like to do is attach arrows on each side of the mesh much like the way it is done in Prefab where elements may be moved on the axes in the scene by dragging on the arrows with the mouse.
I’ve tried, unsuccessfully, things like
arrow.x=mesh.x
arrow.position=mesh.position
arrow.position=mesh.sceneTransform.position
I could probably manage using drag3D but i feel players would find it much too awkward. Arrows seem more intuitive.
Any ideas?
If I can get this working I’ll most likely be back asking how to rotate the mesh with some curved arrows perhaps