Open shenzhuxi opened 5 years ago
In Blender, I set cubes parents to bones as hitboxes/hurtboxes.
After export to gltf, I found that their position were different from in Blender.
Here is the cause https://github.com/KhronosGroup/glTF-Blender-Exporter/issues/249. GLTF file stores bone head position and its children follow it, while children follow parent bone's tail location in Blender.
It can be solved by moving children and set their locations to the bones' tails after you make things look right in Blender. However, it's still very counterintuitive.
In Blender, I set cubes parents to bones as hitboxes/hurtboxes.
After export to gltf, I found that their position were different from in Blender.
Here is the cause https://github.com/KhronosGroup/glTF-Blender-Exporter/issues/249. GLTF file stores bone head position and its children follow it, while children follow parent bone's tail location in Blender.
It can be solved by moving children and set their locations to the bones' tails after you make things look right in Blender. However, it's still very counterintuitive.