All Classes Namespaces Functions Variables Enumerations Properties Pages
void ReplaceMuscle ( ConfigurableJoint  oldJoint,
ConfigurableJoint  newJoint 
)

NB! Make sure to call this from FixedUpdate! Replaces a muscle with a new one. This can be used to replace props, but in most cases it would be faster and more efficient to do it by maintaining the muscle (the Joint and the Rigidbody) and just replacing the colliders and the graphical model. This method allocates memory, avoid using it each frame.