Hi ,
can anybody please help meI want to move the freecamera in x and y direction according to the mouse drag,
By default freecamera moves in x and z direction when direction keys are pressed.
in the same way :
mouse click and drag right side - camera has to move on right side (X-Axis +)
mouse click and drag Left side - camera has to move on left side (X-Axis -)
mouse click and drag Up side - camera has to move on Up side (Y-Axis +)
mouse click and drag Down side - camera has to move on Down side (Y-Axis -)
and please help me how can i get the updated values of x and y ,when mouse is clicked and getting dragged.
i am new to javascript coding not having good knowledge on keyboard and mouse events .