Skip to content

lib.math.float.Damp

Thomas Mann edited this page Jan 17, 2024 · 6 revisions

Damp

in lib.math.float


Damps (i.e., smooths or filters) an incoming value with the following methods: Linear interpolation: Damping 0 -> instant ... 1 -> value frozen / Target will never be reached. Spring Damp: Uses a "critically damped spring" that will provide a very smooth interpolation that will never overshoot. The ideal damping value depends on your value range (lower spring for very large changes in value). The spring damp method is also used by Unity's SmoothDamp method. Have a look at the example.


Input Parameters

Name (Relevancy & Type) Description
Value (SingleRequired) -
Damping (Single) -
Method (Int32) -
UseAppRunTime (Boolean) -

Outputs

Name Type
Result System.Single

Please help use to improve this documentation. Feel free to improve the description.

⚠ Everything else is automatically generated and will be overwritten regularly.

Clone this wiki locally