Tanoda
Leap.Unity.SmoothedVector3 Class Reference

Time-step independent exponential smoothing. More...

Public Member Functions

void SetBlend (float blend, float deltaTime=1f)
 
Vector3 Update (Vector3 input, float deltaTime=1f)
 

Public Attributes

Vector3 value = Vector3.zero
 
float delay = 0f
 
bool reset = true
 

Detailed Description

Time-step independent exponential smoothing.

When moving at a constant speed: speed * delay = Value - SmoothedVector3.value.

Definition at line 19 of file SmoothedVector3.cs.

Member Function Documentation

◆ SetBlend()

void Leap.Unity.SmoothedVector3.SetBlend ( float  blend,
float  deltaTime = 1f 
)

Definition at line 24 of file SmoothedVector3.cs.

◆ Update()

Vector3 Leap.Unity.SmoothedVector3.Update ( Vector3  input,
float  deltaTime = 1f 
)

Definition at line 28 of file SmoothedVector3.cs.

Member Data Documentation

◆ delay

float Leap.Unity.SmoothedVector3.delay = 0f

Definition at line 21 of file SmoothedVector3.cs.

◆ reset

bool Leap.Unity.SmoothedVector3.reset = true

Definition at line 22 of file SmoothedVector3.cs.

◆ value

Vector3 Leap.Unity.SmoothedVector3.value = Vector3.zero

Definition at line 20 of file SmoothedVector3.cs.


The documentation for this class was generated from the following file: