STATE_engine_translate_movement_on_screen_to_world

 

 


   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.

 

 

Go to page 1      Select API

 

Copyright © 2007 3DSTATE Corporation. www.3dstate.com