Click or drag to resize
RagdollPartSetImpactStrengthReductionProfile Method
Sets the impact strength reduction profile.

Namespace: Candlelight.Physics
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public void SetImpactStrengthReductionProfile(
	IEnumerable<Keyframe> profile
)

Parameters

profile
Type: System.Collections.GenericIEnumerableKeyframe
Profile.
Remarks

Specifies the amount of strength reduction to apply for impacts based on the ratio of the squared impulse magnitude to the squared mass of this part. For example, the value at x = 4 represents the strength reduction when either a body with the same mass as this one impacts at 2m/s or when a body with twice the mass of this one impacts at 1m/s.

The explicitly-defined values on the profile are clamped to the range [0, 1]. Values may still fall outside this range depending on their tangents.

See Also