X3MC2 Posted February 3, 2017 Share Posted February 3, 2017 Hi, Since the TouchCamera extends the FreeCamera class and works well both on Desktop and Mobile devices, why the need of the FreeCamera ? Quote Link to comment Share on other sites More sharing options...
ViBe Posted February 3, 2017 Share Posted February 3, 2017 Hi, In the tutorial : https://doc.babylonjs.com/tutorials/cameras We can read : Quote The FreeCamera is also used as the base camera for many of our other cameras, so you will come to 'view' it as an old friend and also : Quote The next 2 cameras... touch, and gamepad... are somewhat superseded by our new Universal Camera (explained far below). The documentation for touch and gamepad cameras are still included here... for historical reference. As the philosophy is to keep compatibility, I think it's the reason why you will always find all the cameras. GameMonetize and X3MC2 2 Quote Link to comment Share on other sites More sharing options...
davrous Posted February 4, 2017 Share Posted February 4, 2017 Yes, purely for compatibility reason. Today, you should use the Universal Camera embedding the 3 major ways to control a FPS like camera: keyboard + mouse, touch & gamepad. Quote Link to comment Share on other sites More sharing options...
davrous Posted February 4, 2017 Share Posted February 4, 2017 BTW, to make touch works everywhere, don't forget: 1 - to reference jQuery PEP 2 - add the touch-action="none" HTML property on your rendering canvas Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 7, 2017 Share Posted February 7, 2017 Interesting! I like hearing camera talk. The more info I can gather, the better chance i can update our cameras tutorial... someday. I'm still leaning towards TWO docs, though. Basics, and Tumor-Level. inputs.attached. hmm. Backward compatible. hmm. Three main inputs for FPS game. hmm. I wonder if there is a version of BJS in a secret folder... that is "rogue"... and it doesn't care ANYTHING about backward compat. I wonder if it exists. hmm. BJS - Version X - Black Ops (Don't even bother THINKING-about asking for help with it. It's black-ops, unpredictable and dangerous.) "If the scene you created today... works again tomorrow... then you're doing something wrong." heh gryff 1 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.