Hi CM! Ok, this is a difficult issue.
All 74 mesh in this heli… have a .getAbsolutePosition() of 0,0,0. That makes it VERY difficult to animate arcCam.lockedTarget… to ANY of those mesh positions.
Every mesh is at position 0,0,0… because of the WAY the heli was created.
Also, it is very difficult to PICK a mesh that is blocked by another isPickable mesh. We could only pick a FEW “outer skin” mesh, and never anything “inside”. And even when we DID pick the outer mesh, it had a position of 0,0,0, so it was impossible to animate the camera.lockedTarget to THAT position. 0,0,0 would be the WRONG position.
These 74 mesh are positioned via “transformed vertices” and not via .position property values.
The best you can do with moving arcCam.lockedTarget to various positions… is to use “clickZone mesh”.
Take a look… https://www.babylonjs-playground.com/#STX192#9
(lots of “debris” outputted to console during the model loading. I’m not sure why)
Click on some clickZones. Working okay?
Later, ALL clickZone mesh and the camera.lockedTarget mesh… will be set .visibility = 0… so user cannot see them. It took a LONG TIME for me to build the six clickZone mesh for this model, but they work pretty well.
An animation utility add-on is placed onto ALL mesh (including camera.lockedTarget)… in lines 1-5.
SetActions function is not called at all, because no actionManagers are put onto the 74 mesh. ONLY put onto the 6 clickZone mesh. Each of the clickZone mesh DOES have a non-0,0,0 .position… so we can use the animator… to animate arcCam.lockedTarget… to THOSE clickZone positions.
Add as many clickZones as you wish, using the same format as I have used. The more clickZones you have, the more precise your clicking/lockedTarget “resolution” can be.
It’s not the same as being able to click all 74 mesh, and have the .lockedTarget animate to each. BUT… it’s not too bad, and it works for transformed-vertex models like this helicopter.
Wha-da-ya-think? Would THIS method of moving camera.lockedTarget… work ok for your project?
With models like this helicopter, there are not many target-moving choices available.
I hope I have been helpful. Ask questions, make comments, we’re here to help. Click on some clickZone mesh… have some fun.
PS: I changed the double-click… to single-click. You might wish to change that back-to double-click, as wanted.