Is it possible to choose a bone only? For example, I have a character with a skeleton and I wish for example by clicking on the head to select the bone of the head and not the mesh to make a rotation on the bone select.
Or I wish I could get the index of the bone by clicking on the head for example.
once you have the picked mesh, and the picked face you can probably get (not easy but I can help) the matricesIndices values that are the IDs of the bones that influence the current mesh
So yes this is correct and now instead of getNormal you need to come with something like getTExtureCoordinates but with the VertexBuffer.MatricesIndices instead:
Down I happen to do things without really understanding what I’m doing. I do it because I imagine it must be like that, but without understanding what I write, why.
Here for example, I recover the MatricesIndices but I do not know what I have to do and I do not know what are matrices concretely.
It is a bit complicate as people may want to get all the bones and not the first one. There is also the case where we have 8 and not 4 bones (and in this case the MatricesIndicesExtraKind is used)