Jump to content

Planet Walker Camera


Filipe Rodrigues
 Share

Recommended Posts

Hello guys, I'm pretty new to Babylon.js and doing some demos.

Right now I'm trying to implement a platformer physics like Mario Galaxy. But I'm having some problems getting a 3rd Person Follow Camera around Planet working :s

This is what I have right now: 

http://www.babylonjs-playground.com/#2IYTT

I'm trying to do a camera that will follow my character around the planet, an effect similar to Prosecution Demo: http://cdn.babylonjs.com/wwwbabylonjs/Scenes/prosecution/index.html

Any help would be praised!

Thanks in advance

Link to comment
Share on other sites

Hi and welcome to the forum and apologies for it being a while before you got a reply. There is a lot in your code, such as the physics engine, that I have never used/ However there is a lot of unnecessary code when you are using the playground. A lot of the setup code is already done in the background that is how the playground works. Have a read of the following

http://babylonjsguide.github.io/begins/Introducing_Babylonjs and the full version here  http://doc.babylonjs.com/generals/a_babylon.js_primer

In the meantime here is a version of your code with the extra bits (unneeded for the playground) removed  http://www.babylonjs-playground.com/#2IYTT#1

In case you had not already realised when using key controls in the playground you must click inside the rendering area to use them as key controls.

Good luck with your project and ask again if something else is a problem Hopefully next time you will get an answer more quickly.

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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