|
This function is used to solve the following problem:
An object inside our world is dragged with the mouse delta_x,delta_y pixels.
Where should we put the object now so that it will reflect the correct move.
Arguments:
p3D -
p3D is a point in the world.
delta_x,delta_y
delta_x, delta_y is the desired change in the location on
the screen of the projection of p3D.
result_p3D
result_p3D is a location that if p3D will move to this location
its projection on the render image will move delta_x pixels right
and delta_y pixels down (negative gives an opposite direction)
returns OK or VR_ERROR and the reslut x,y,z point in result_p3D.
|