Forum

Mouse move -> camera/character rotation

24 November 2015 16:11 #5261
You can use mouse drag instead of the pointerlock.
Use such call to control the camera:
m_mouse.request_mouse_drag(canvas_elem, null, rotation_cb);
Blend4Web developer
26 November 2015 00:00 #5334
Thanks again, finally got what I was looking for!

I still think having a variation of pointer lock that is toggled by holding/releasing the lmb would be ideal solution, so I'm going to add that to the feature request forum.
 
Please register or log in to leave a reply.