Im trying to get a ray picking to work on meshes that are deformed by skeletons.
Is this generally possible? And if yes, how?
I created a test playground here: https://playground.babylonjs.com/#8BVNBC#8
(use arrowkeys to move around. Mouse to look)
The raycollision check seems to work, but for me only with the not transformed cube. If I look at the origin of the scene, I get a console.log that Im hitting the cube. Trying to look at the moving(transformed) box it doesn’t give me any feedback.
What’s happening? Is the ray collision calculated before the skeletal animation is applied?
I encounter another problem with the visibility of the mesh aswell. When I move the camera to a position where the origin is not visible anymore and look to the moving cube. It disappears.
Any idea how to keep the the transformed cube visible?
After a while playgrounds fps drops. Tested on chrome, firefox, windows10 and mac OSX.
Has anyone an idea what I’m doing wrong? I noticed the same behavior with this PG example, here:
Im fairly new to coding and babylon - coming from a 3D-Animation background. So please expect some stupid mistakes. ^^
Thanks in advance!