Dimitry Posted May 21, 2015 Share Posted May 21, 2015 Hello!I want to rotate the camera left on swipe left for example. Now I put camera.rotation.y = camera.rotation.y-0.5;And it changes very abruptly. I think camera.cameraDirection = camera.cameraDirection.add(new BABYLON.Vector3 should be used but here enter the sinus and cosinus which I do not know at all :-) Could someone please help? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted May 25, 2015 Share Posted May 25, 2015 Hi again, Dimitry... good to hear from you. Have you tried our TouchCamera? Here's somebody's demo... I added a touchCamera to it. But I have no touch devices to test-with. Does it work ok for you? Does it swipe nicely? The slim documentation is in our Camera Tutorial under "Unique Purpose Cameras" - http://babylondoc.azurewebsites.net/page.php?p=22061 If the touchCamera isn't quite right, it can be modified quite easily. Keep us posted... thx! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.