All Classes Namespaces Functions Variables Enumerations Properties Pages
void RemoveMuscleRecursive ( ConfigurableJoint  joint,
bool  attachTarget,
bool  blockTargetAnimation = false,
MuscleRemoveMode  removeMode = MuscleRemoveMode.Sever 
)

Removes the muscle with the specified joint and all muscles connected to it from PuppetMaster management. This will not destroy the body part/prop, but just release it from following the target. If you call RemoveMuscleRecursive on an upper arm muscle, the entire arm will be disconnected from the rest of the body.

Parameters
jointThe joint of the muscle (and the muscles connected to it) to remove.
attachTargetIf set to true , the target Transform of the first muscle will be parented to the disconnected limb.
blockTargetAnimationIf set to true, will add AnimationBlocker.cs to the removed target bones. That will override animation that would otherwise still be writing on those bones.
removeModeRemove mode. Sever cuts the body part by disconnecting the first joint. Explode explodes the body part disconnecting all joints. Numb removes the muscles from PuppetMaster management, keeps the joints connected and disables spring and damper forces.