Having a bit of trouble with this.
I tried 2 solutions,
setPivotMatrix with false parameter, and adding a parent.
The box dissappears for some reason! https://www.babylonjs-playground.com/#L6GCXU#2
This would be the ideal way to do this because solution 2 creates problems:
2) Adding a parent
Parent = pivot
Child = box
The pivot is positioned on the corner of the box
This breaks the rest of my code when dragging the boxes.
Ideally, when dragging the child, the parent should re-position with it also. But currently, from what I understand, the child is re-positioned relative to the parent, and the parent stays still.
Is it possible to auto-position the parent based on the position of the child? Or the relationship would have to change?