Jump to content

Camera moves when changing scene


valepu
 Share

Recommended Posts

Hello,

Using a playground taken from this thread as reference

http://www.babylonjs-playground.com/#1FE2KF 

In this playground if you click on a cube it will switch camera.

I have noticed that if you drag the scene around then change camera by clicking on a cube the last movement done on the previous camera will be executed on the new camera too. Is there a way to prevent this?

 

This also happen if you change scene:
- You are on scene 1
- go on scene 2
- drag the camera
- go back to scene 1

scene 1's camera will move too as soon as you go back to that scene

It doesn't happen if you move the camera using the keyboard, though

 

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