![]() | RagdollPartSetImpactStrengthReductionProfile Method |
Namespace: Candlelight.Physics
public void SetImpactStrengthReductionProfile( IEnumerable<Keyframe> profile )
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.