hmm, if the rotate is executed the axis is used and now you want to find it back?
I think that is only possible if you have the world_matrix saved before the rotation and try to find out what the rotation axis was
to transform the old to the new …
the problem is that i want implement the auto rotation function similar when you have a face selected and you use CTRL + LMB to extrude a face, in my script. for the moment i’ve used
where “angle” is the angle between face center and mouse location and var is the vector take by a function that return the actual view rotation or location( i don’t know)
ok did it! PKHG you give me the inspiration. i used the perspective matrix to find wich index is equal to the “rotation axis” and it seems to be the third index…