mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-06-04 14:15:53 -04:00
If forward is parallel to (0,0,1) — camera staring straight up or down — the cross product is zero and glm::normalize returned NaN. That NaN flowed into glm::lookAt and produced a NaN view matrix. The editor camera clamps pitch to +/-89 so it doesn't trigger, but other call sites or scripted test paths could construct a Camera at +/-90 and immediately blow up. Length-check the cross and fall back to world +X / +Z.