Jump to content

Array changes on camera movement


Flomotion
 Share

Recommended Posts

Hi,

I'm trying to create a few camera positions that my active camera can animate/jump to. I use an array because I store all camera positions from a .babylon file. It all works fine until the camera is moved by the user.

 

When it's moved the content of the array adjusts to the camera position of my active camera. And thus I lose the original camera position. I don't understand why that happens..

I've made a playground to demonstrate: http://www.babylonjs-playground.com/#12UA27

click on an object to switch camera position.

 

I hope someone can help me fix that.

 

thanks!

Floris

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