Merfoo Posted February 4, 2014 Share Posted February 4, 2014 So I'm making a free camera and setting its parent to a mesh that moves/rotates. The camera follows the mesh as expected, but when the mesh isn't moving/rotating it goes back to its original position. Any clues as to why its doing it and how to fix it? Thanks! Link to problemhttp://team955.com/games/fps/ Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 4, 2014 Share Posted February 4, 2014 Did you use the latest version on the repo? Quote Link to comment Share on other sites More sharing options...
Merfoo Posted February 4, 2014 Author Share Posted February 4, 2014 Yup using the most recent version on github Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 5, 2014 Share Posted February 5, 2014 I thought I fixed that Could you try with this version:www.babylonjs.com/babylon.js Quote Link to comment Share on other sites More sharing options...
Merfoo Posted February 5, 2014 Author Share Posted February 5, 2014 Yeah the camera still stays in the same place when not moving :/ Here is a simple project from scratch with just a free camera with a block as a parent. I made this project specifically for the free camera with a parent so that its not cluttered with other stuff like the fps one, hope it helps debugging http://team955.com/games/cameraWithParent/ w/s to move forward/backward, move the mouse to rotate the block. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 5, 2014 Share Posted February 5, 2014 I updated babylon.js on the repo. Could you check? Quote Link to comment Share on other sites More sharing options...
Merfoo Posted February 5, 2014 Author Share Posted February 5, 2014 No still doesn't stay updated :/ Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 6, 2014 Share Posted February 6, 2014 Could you update your site with the latest babylon.1.8.5.js? Then I wiil try to debug Quote Link to comment Share on other sites More sharing options...
Merfoo Posted February 6, 2014 Author Share Posted February 6, 2014 Yup using the the latest babylon1.8.5.js! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 7, 2014 Share Posted February 7, 2014 Just curious: could you just remove this line:// Attach the camera to the scene g_scene.activeCamera.attachControl(canvas); Quote Link to comment Share on other sites More sharing options...
Merfoo Posted February 7, 2014 Author Share Posted February 7, 2014 Commented out Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 9, 2014 Share Posted February 9, 2014 I've just updated babylon.1.8.5.js on the repo Quote Link to comment Share on other sites More sharing options...
Merfoo Posted February 9, 2014 Author Share Posted February 9, 2014 Yay it works now! Thank you Deltakosh!http://team955.com/games/cameraWithParent/ 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.