I have this combination of boxes and tubes that represent a room’s walls on a floor plan.
Example: Babylon.js Playground
Currently, the corners pivot point is in the center of the box, but I need it to be at the inner room corner of the box.
This means that the tube and boxes of the room need to be repositioned outwards like in the image below:
I think I figured a way to reposition the boxes, by calculating direction vectors from the center of the room and adding the difference.
In this case, how do I reposition the tubes also? Can I move the pivot for the starting and end points of the tubes to the corner of the tube also?
In general, this is the right strategy? Or should I redraw the room with different meshes at this point?
@JohnK your help is appreciated.