Summary
A wrapper for
UnityEngine.Mathf.SmoothDamp(System.Single,System.Single,System.Single@,System.Single,System.Single,System.Single)
to control float
parameters in Animancer.ControllerState
s similar to
UnityEngine.Animator.SetFloat(System.Int32,System.Single,System.Single,System.Single)
.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["ControllerState.DampedFloatParameter"]
class Type type-node
Syntax
public class ControllerState.DampedFloatParameter
Constructors
Name | Summary |
---|---|
DampedFloatParameter |
Creates a new Animancer.ControllerState.DampedFloatParameter . |
Fields
Name | Constant Value | Summary |
---|---|---|
currentValue |
The last value the parameter was set to.
|
|
maxSpeed |
The maximum speed that the current value can move towards the target.
|
|
parameter |
The name of this parameter.
|
|
smoothTime |
The amount of time allowed to smooth out a value change.
|
|
targetValue |
The value that the parameter is moving towards.
|
|
velocity |
The speed at which the value is currently moving.
|
Methods
Name | Value | Summary |
---|---|---|
Apply |
void |
Updates the target parameter.
|
Apply |
void |
Updates the target parameter.
|