X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=src%2Fapp.cc;h=7f173f35a1fafea2fafa93ee75334371ded9a4dc;hp=b1587f5e4652811cde3c74f5308de266934a7f17;hb=a65c61e066fecc441ebf651987dc56deb78a4247;hpb=0d4fe99398b649a5471417f8497a828b5f128da1 diff --git a/src/app.cc b/src/app.cc index b1587f5..7f173f3 100644 --- a/src/app.cc +++ b/src/app.cc @@ -362,8 +362,9 @@ static void update(float dt) if(have_handtracking) { update_vrhands(&avatar); } else { + // TODO do this properly // set the position of the left hand at a suitable position for the exhibit UI - Vec3 dir = transpose(mouse_view_matrix.upper3x3()) * Vec3(0, 0, -1); + dir = transpose(mouse_view_matrix.upper3x3()) * Vec3(-0.47, 0, -1); exslot_left.node.set_position(avatar.pos + dir * 30); // magic: distance in front }