First off, I just wanted to say a huge thanks to @Evgeni_Popov and @sebavan. You’ve always gone above and beyond to show me the way. It’s a learning curve, but a good one!
I’ve finally managed to pick the above back up to see if I can further my understanding (I thought I had the maths but failed). I’ve been experimenting with the above to see how to implement cut sections with models that are off-centred in world space. Similar to the question above, but the model position is (50, 100, 1000) instead of (0,0,0).
I’ve made some progress. I’ve managed to get the Z translation and X rotation to mostly work (apart from the visible plane flipping/spinning behaviour).
The block I’ve run into is how to get the Y rotation to work with the new model coordinate. I’m guessing I’ve taken the wrong approach, and at this point, my brain keeps going round in circles.
Can anyone see where I’m going wrong? https://www.babylonjs-playground.com/#Y6W087#112
Green slider mostly works (x-rotation) as intended (excluding the visible plane flipping behaviour, not sure how to fix that either)
Red slider, no luck. I’m trying to apply the y-rotation (like the example here: https://www.babylonjs-playground.com/#Y6W087#69)
The blue slider works (z-translation).
I’m experimenting to see if I can get the cut rotations to happen in the centre of the model, instead of the world space. So it feels more fluid.
Thanks for any guidance/help