Vat animated picking

repro: https://playground.babylonjs.com/#CP2RN9#307

Its been a while, I can’t find similar reports and not sure if I missed a setting (api isn’t helping :frowning: ). If you try to pick the beak? of the thin instances above the bounding box, the action manager won’t fire. Ditto for mesh.thinInstanceRefreshBoundingInfo(false,true);

I do not need real-time bounding info update, what do I need to set for accurate picking of vat driven thin instances?

edit: i forgot to add, I’m using gpu picker with onPointerObservable. Was expecting pointer pick to fire when picking on a vat driven mesh but it seems like scene.pick is not registering the thin instance picked after animation.

Figured it out: https://playground.babylonjs.com/#CP2RN9#308

Way more accurate than scene pick, try picking the legs! Leaving here for posterity, checks not included, adapt to your own use-case. Cheers!

edit: on 2nd tots, I think smthg is still wrong…hmm…

2 Likes