I’ve seen this question being asked on other posts, but unfortunately I still can’t find a definitive solution for my case.
Here’s what I am trying to do:
I have a rotated mesh, which I clone/duplicate. The cloned mesh should be positioned right next to the original mesh, where both adjacent surfaces are parallel to each other, like so:
That was the part that I have already figured out.
Next, I want to set a pivot point to the bottom edge of the mesh, and then apply z rotation by 5 degrees, resulting in this:
I can’t seem to figure out how to exactly do that part, as pivot points in BabylonJS do not behave like pivot points in 3d modelling programs, such as blender.
Any help is appreciated, thanks!