コード例 #1
0
 // Token: 0x06002E08 RID: 11784 RVA: 0x000E1928 File Offset: 0x000DFD28
 public float Step()
 {
     if (this.config.interpolationType == FloatInterpolator.Config.InterpolationType.Exponential)
     {
         this.currentValue = ETween.Step(this.currentValue, this.targetValue, this.config.interpolationSpeed);
     }
     else if (this.config.interpolationType == FloatInterpolator.Config.InterpolationType.DampedSpring)
     {
         this.currentValue = DTween.Step(this.currentValue, this.targetValue, ref this._velocity, this.config.interpolationSpeed);
     }
     else
     {
         this.currentValue = this.targetValue;
     }
     return(this.currentValue);
 }
コード例 #2
0
ファイル: Interpolator.cs プロジェクト: VizRCA/embodied-vr
 public float Step()
 {
     if (config.interpolationType == Config.InterpolationType.Exponential)
     {
         currentValue = ETween.Step(
             currentValue, targetValue, config.interpolationSpeed);
     }
     else if (config.interpolationType == Config.InterpolationType.DampedSpring)
     {
         currentValue = DTween.Step(
             currentValue, targetValue, ref _velocity, config.interpolationSpeed);
     }
     else
     {
         currentValue = targetValue;
     }
     return(currentValue);
 }
コード例 #3
0
ファイル: Tween.cs プロジェクト: craftweak/ChaoHsiang_desktop
 public void Step(Quaternion target)
 {
     rotation = DTween.Step(rotation, target, ref velocity, omega);
 }
コード例 #4
0
ファイル: Tween.cs プロジェクト: craftweak/ChaoHsiang_desktop
 public void Step(Vector3 target)
 {
     position = DTween.Step(position, target, ref velocity, omega);
 }
コード例 #5
0
 // Token: 0x06002E40 RID: 11840 RVA: 0x000E2609 File Offset: 0x000E0A09
 public void Step(Quaternion target)
 {
     this.rotation = DTween.Step(this.rotation, target, ref this.velocity, this.omega);
 }
コード例 #6
0
ファイル: DTween.cs プロジェクト: Smoothstep/VRChat
 // Token: 0x06002E37 RID: 11831 RVA: 0x000E253D File Offset: 0x000E093D
 public void Step(float target)
 {
     this.position = DTween.Step(this.position, target, ref this.velocity, this.omega);
 }