Jump to content

Problem with rotating the picked mesh


Recommended Posts

Hello everyone.

I'm new to Babylon and I've been working on a project. I want to rotate the uploaded mesh when its clicked. I came up with a solution. However, after rotating an object and trying to do the same thing to another one, the first one stays "selected" and both them rotate together. 

But what I want is that after I'm done rotating the first clicked object I want it to be "unselected" so that all of my objects won't rotate at the same time. 

Maybe because I'm new at this I'm missing something so I'm okay with changing my approach and doing what I want with a different way.

Is there any other way to do what i want or am I missing something in my code?

I set up a playground so you can see the problem there. https://www.babylonjs-playground.com/#LDNW87

Thank you for your help,


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