143144145146147148149150151152153
matrix.mult( v3d, v3d ); v3d.x = Math.abs( v3d.x ); v3d.z = 0; v3d.normalize(); euler.x = xAxis.angleBetween( v3d ); v3d.set( yAxis ); matrix.mult( v3d, v3d ); v3d.z = Math.abs( v3d.z ); v3d.x = 0;