private void updateBasis(Vector3 center, Vector3 up) { if (center != null && up != null) { basis = OrthoNormalBasis.makeFromWV(center, up); basis.swapWU(); basis.flipV(); } }