Version: 1.10
LanguageEnglish
  • C#

AnimationDeadBlendingPlayable.SetHalfLifeBase

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void SetHalfLifeBase(float value);

Parameters

value Base half-life in seconds. Default is 0.25.

Description

Sets the base half-life for the heuristic per-axis decay constant calculation.

The half-life h for each axis is computed as: h = Clamp(halfLifeBase * D / V, halfLifeMin, halfLifeMax), where D is the distance to target and V is the velocity. The decay constant c is then ln(2) / h. A larger half-life produces slower convergence.