I need transform mouse coordinates to 3d-coords. I find some methods in view3d: project and unproject.
But i don’t understand why i got different results when i make for example:
var sceneVector:Vector3D = new Vector3D(event.sceneX, event.sceneY, event.sceneZ)
var p:Point = view3D.project(sceneVector);
//p.x == view3D.mouseX and p.y == view3D.mouseY
var v:Vector3D = view3D.unproject(p.x, p.y);
// in this case sceneVector != v
Why it happens? How i can method unproject() to get same result as in sceneVector?
I just want to construct 3d coordinates when i click on free space on scene (not on object), when 3d events not firing. Maybe you can advise better solutions?
Thanks!