Hi,
In the following playground, I have a cube and spheres positioned on 4 corners of that cube: https://playground.babylonjs.com/#LZNB1V#7
These spheres are supposed to work as size controllers of the cube as illustrated in the following video:
My code works for an un-rotated cube as in the video, but doesn’t quite work with a rotated cube (in the playground).
There must be something wrong with the math I am doing… including rotation quaternions or etc
Also, using the 6 DoF box gizmos out of the box is not a choice for me.
I would really appreciate it if you could help.