auz_82 Posted November 13, 2015 Share Posted November 13, 2015 Hello everybodyI'm trying to make a 3D model explorable, but I'm having problems with the free cam and do not understand what is wrong.The scene works with a ArcRorateCamera but when I try to change it in a FreeCam it gives me error...can you help me? thanksSimone2015 11 13 arc rotate cam working.html2015 11 13 free cam NOT working.html Quote Link to comment Share on other sites More sharing options...
Stalker Posted November 13, 2015 Share Posted November 13, 2015 Hi! The problem is that you only called FreeCamera method with the same arguments as for the ArcRotate camera. This is how you should create your FreeCamera.var camera = new BABYLON.FreeCamera("FreeCamera", new BABYLON.Vector3(0, 1, -15), scene); And more reading material :https://github.com/BabylonJS/Babylon.js/wiki/05-Cameras Quote Link to comment Share on other sites More sharing options...
auz_82 Posted November 13, 2015 Author Share Posted November 13, 2015 Thanks for the help StalkerI had already seen that page.Unfortunately Freecamera still not working.I tried replacing the imported mesh with a plan but does not work equally2015 11 13 free cam NOT working.html Quote Link to comment Share on other sites More sharing options...
JohnK Posted November 13, 2015 Share Posted November 13, 2015 Could you supply a PG. It makes it more likely that someone will quickly check your code and suggest an alternative. Quote Link to comment Share on other sites More sharing options...
auz_82 Posted November 13, 2015 Author Share Posted November 13, 2015 Hi JohnKI found the problem.There was a line of code that referred to nothingthank you! http://www.babylonjs-playground.com/#2FY4XT#3 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.