raviranjankumarsinha Posted December 7, 2014 Share Posted December 7, 2014 Hi Friend, I am developing house and inside house move the man using keyboard(left, right, front, back), so assume that i am pressing front key so man will keep moving forward and one point of time there is right turn in house because front wall is there. So, i am having 2 questions, 1. How i can rotate camera so it looks like man is moving right(when pressing right key after front wall is there) and what amount? 2. Once man moved right but because house is rotated so how can make front key to move forward? ThanksRaviranjan Quote Link to comment Share on other sites More sharing options...
RaananW Posted December 8, 2014 Share Posted December 8, 2014 Hi Raviranjan, I would recommend reading babylon's wiki page - https://github.com/BabylonJS/Babylon.js/wiki . The basics are documented and you can take it from there. Play with the demos in the playground, change them to your needs, paste your tests here and we might be able to help. To your direct question, check what a Free Camera is, and how to use it - https://github.com/BabylonJS/Babylon.js/wiki/05-Cameras Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted December 9, 2014 Share Posted December 9, 2014 I would do the opposite of this thread http://www.html5gamedevs.com/topic/10614-disabling-arrow-keys-for-freecamera/ That is attach the canvas to the camera. 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.