Commit 8a308371 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev
Browse files

keeping height

parent e2db714e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -334,6 +334,10 @@ function x3dom_translation_v2(x,y,z){
    var up = mat.e1();

    var newfrom = delta;

    // keeping height
    newfrom.y = from.y;

    var newat = newfrom.subtract(mat.e2());

    var newmat = x3dom.fields.SFMatrix4f.lookAt(newfrom, newat, up);