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

keeping height

parent e2db714e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment