I have a homemade control that uses drag behaviors to stretch the cube so the top surface is sloped. The code is so nasty I’m ashamed to show it here.
I did a simple experiment to do this with a bounding box gizmo. If you scale it the top slopes up:
But I want this behavior to reflect the direction of the drag and which of the scale controls has been grabbed. In other words, I want to be able to slope and un-slope top and to be able to have the behavior occur only when the scale controls in the upper right and upper left corners of the bounding box are grabbed.
I am pretty familiar with the drag events but I don’t see any examples that show how to get the event when onScaleBoxDragObservable fires.
I also don’t see any examples that show how to determine which of the scale controls has been grabbed.
Thanks in advance for any help.