private Quaternion GetNodeRotation(Vector3 nodeDirection) { // TODO: Fix angle var angle = MathEx.AngleOffAroundAxis(nodeDirection, -Vector3.UnitZ, Vector3.UnitY, false); var rot = Quaternion.CreateFromAxisAngle(Vector3.UnitY, (float)angle); rot *= prefabRot; return(rot); }