i have this f*** problem for 2 YEARS now and i cant fix it alone because i am dumb
context: this code spawn a hologram of ship1 to display where the ship would dock on ship2. it finds the closest docking point (closestPointInventory because the docking points are stored in the inventory interface, don't ask)
the simple issue is, on a certain rotation of the ship (90 degrees to be exact) and the dot being between 0.05 and -0.05, the alignment changes to the wrong one making the hologram ("spawnedd") ending up inside the ship2 as on the pic
i feel like an idiot because this looks so simple to solve but i tried EVERYTHING
just try to replicate it if you try to help