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. Babylon.js Playground
Thank you for your help,