Finds a bone by name.
Bone? findBone(String name) { for (final bone in bones) { if (bone.name == name) return bone; } return null; }