Jump to content

how to Move camera in babylonjs


Recommended Posts

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?






Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...