HI. I am trying to implement drag object with mouse by finding intersection between the ray and a plane. And seems coords is OK, but I cannot move object correctly. I want it to move relative to the camera X and Y axis (Right and Up) but instead of this I receive opposite direction movement.
Only one case when it moving correctly - when camera is along Z axis. In all other cases, object moves incorrect.
To move relatively I multiply camera relative axis (Rigth or Up) to the delta vector (difference between current and new object positions) given by the intersection test and when add them to the current position.
Could someone point me what I am doing wrong and why cannot drag object correctly on the all axis?
Maybe I am missing something very basic?