yokewang Posted August 13, 2018 Share Posted August 13, 2018 Hello, I am looking for camera examples that can run on mobile and use touch events to implement rotation, zoom operations. Any help will be appreciated. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted August 14, 2018 Share Posted August 14, 2018 Most of the babylonjs cameras can work on Mobile: http://doc.babylonjs.com/babylon101/cameras As a good start I would advise to rely on the ArcRotateCamera: http://doc.babylonjs.com/babylon101/cameras#arc-rotate-camera It can focus on one object and let the user navigate around. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted August 14, 2018 Share Posted August 14, 2018 Cameras, are mostly the same, except device orientation or VR, regardless the platform. Think the question you are really asking is how do I make them work using touch. Add pep any everything should work. <script src="https://code.jquery.com/pep/0.4.3/pep.min.js"></script> Quote Link to comment Share on other sites More sharing options...
yokewang Posted August 14, 2018 Author Share Posted August 14, 2018 Thank @Sebavan and @JCPalmer so much for your help. Add pep.min.js everything works. 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.