Hello! getPositionData accepts as an optional last argument the data you want to apply the transformations to, so you can pass the normals data to it I think the name of this function can be a bit confusing because it only talks about position. @sebavan@Deltakosh I wonder if we can “rename” (well we have to leave the old one too for back compat) it to getTransformedData?
After rotating the leg, one would expect the normal to maintain its direction relative to the mesh, but unfortunately it does not with the getPositionData function
The function only exists for positions not normals and the way it is applied would not work for a direction, only a position.
Do you want to create a PR to add an extra function ? this would mean factorizing out the shared part and mainly replacing TransformCoordinatesFromFloatsToRef by TransformNormalsFromFloatsToRef in case of directions
Ok I’ve created a (literal) function prototype of the code
It seems to work but I might miss something @sebavan
If someone could check this that’ll be awesome and I’ll be happy to submit a proper PR once it’s ready (or probably better for someone else who is more familiar with the BJS PR process )