Click or drag to resize
RagdollAnimatorSetBodyShouldAnimateWhenDisconnected Method
Indicate that the specified animated body should continue to animate when one of its ancestors disconnects.

Namespace: Candlelight.Physics
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public void SetBodyShouldAnimateWhenDisconnected(
	Transform animatedBody,
	bool shouldAnimate = true
)

Parameters

animatedBody
Type: Transform
Animated body.
shouldAnimate (Optional)
Type: SystemBoolean
If set to , the body should continue to animate when one of its ancestors disconnects.
Remarks
By default, when a part's joint breaks (e.g., a severed limb), it and its children will cease to apply any animation data. By calling this method with a value of , you can specify that the body should continue to receive animation data (and apply forces if it has a corresponding RagdollPart). For example, a character's fingers could continue to animate even if its arm were severed at the shoulder. The shoulder itself would cease to apply any animation data, however.
See Also