It’s interesting that you calculate a local relative vector ‘angle’ but then you use the completely random, non-local ‘destination’ to set your up vector.
i had to move the connections ( line boxes ) in the direction of the destination sphere with an offset because the boxes get stretched from 0. in both directions and i want both ends to be in the center of sphere
i had to move the connections ( line boxes ) in the direction of the destination sphere with an offset because the boxes get stretched from 0. in both directions and i want both ends to be in the center of sphere
I think you are missing what I’m saying.
This:
geom.rotateUpTo(destination.normalize());
Is most certainly wrong. You probably want:
geom.rotateUpTo(angle.normalize());