The buildPointMap() and makeShapeFromVerticeWeights() methods in com.jme3.bullet.control.ragdoll.RagdollUtils search for meshes of the specified model. However, they look only at the model's root spatial and its immediate children. Any meshes deeper in the tree are missed. This may cause a crash later, if there are insufficient vertices to form a shape.
Furthermore, these methods should ignore non-animated meshes.
The
buildPointMap()andmakeShapeFromVerticeWeights()methods incom.jme3.bullet.control.ragdoll.RagdollUtilssearch for meshes of the specified model. However, they look only at the model's root spatial and its immediate children. Any meshes deeper in the tree are missed. This may cause a crash later, if there are insufficient vertices to form a shape.Furthermore, these methods should ignore non-animated meshes.