public void InitRagdollMapper() { if (Character.Bones.Count == 0) { return; } if (Character.Physics == null || Character.Physics.Ragdoll == null) { return; } RagdollMapper = new MyRagdollMapper(Character, Character.Bones); RagdollMapper.Init(Character.Definition.RagdollBonesMappings); }
public void InitRagdollMapper() { if (MyFakes.ENABLE_RAGDOLL_DEBUG) { Debug.WriteLine("RagdollComponent.InitRagdollMapper"); } if (Character.AnimationController.CharacterBones.Length == 0) { return; } if (Character.Physics == null || Character.Physics.Ragdoll == null) { return; } RagdollMapper = new MyRagdollMapper(Character, Character.AnimationController.CharacterBones); RagdollMapper.Init(Character.Definition.RagdollBonesMappings); }