You can set your View’s Transform3D with the lookAt(from,to,up) method. So how can I extract that vector v=(from,to) from an already oriented View? I was thinking about extracting it from the View’s Transform3D by processing its Quat4f data, but that’s very cumbersome. Any better ideas?
- There are loads of from-to combinations, that make the same Transform3D.
To get the “from” you simply call
Transform3D.get(Point3f);
To get the “to” you could simply call
Vector3f v = new Vector3f(1,0,0);
Transform3D.transform(v);
Arne
Thanks arne, your solution was the first thing that I thought of when I woke up this morning. I must had been pretty tired to oversee it yesterday, I guess.