@@ -140,11 +140,11 @@ float velocity
140
140
readonly float _r , _c1 , _c2 ;
141
141
142
142
public override float x ( float time ) {
143
- return ( ( this . _c1 + this . _c2 * time ) * Mathf . Pow ( Mathf . Epsilon , this . _r * time ) ) ;
143
+ return ( ( this . _c1 + this . _c2 * time ) * Mathf . Pow ( ( float ) Math . E , this . _r * time ) ) ;
144
144
}
145
145
146
146
public override float dx ( float time ) {
147
- float power = Mathf . Pow ( Mathf . Epsilon , this . _r * time ) ;
147
+ float power = Mathf . Pow ( ( float ) Math . E , this . _r * time ) ;
148
148
return ( this . _r * ( this . _c1 + this . _c2 * time ) * power + this . _c2 * power ) ;
149
149
}
150
150
@@ -179,13 +179,13 @@ float velocity
179
179
readonly float _r1 , _r2 , _c1 , _c2 ;
180
180
181
181
public override float x ( float time ) {
182
- return ( this . _c1 * Mathf . Pow ( Mathf . Epsilon , this . _r1 * time ) +
183
- this . _c2 * Mathf . Pow ( Mathf . Epsilon , this . _r2 * time ) ) ;
182
+ return ( this . _c1 * Mathf . Pow ( ( float ) Math . E , this . _r1 * time ) +
183
+ this . _c2 * Mathf . Pow ( ( float ) Math . E , this . _r2 * time ) ) ;
184
184
}
185
185
186
186
public override float dx ( float time ) {
187
- return ( this . _c1 * this . _r1 * Mathf . Pow ( Mathf . Epsilon , this . _r1 * time ) +
188
- this . _c2 * this . _r2 * Mathf . Pow ( Mathf . Epsilon , this . _r2 * time ) ) ;
187
+ return ( this . _c1 * this . _r1 * Mathf . Pow ( ( float ) Math . E , this . _r1 * time ) +
188
+ this . _c2 * this . _r2 * Mathf . Pow ( ( float ) Math . E , this . _r2 * time ) ) ;
189
189
}
190
190
191
191
public override SpringType type {
@@ -219,12 +219,12 @@ float velocity
219
219
readonly float _w , _r , _c1 , _c2 ;
220
220
221
221
public override float x ( float time ) {
222
- return ( Mathf . Pow ( Mathf . Epsilon , this . _r * time ) *
222
+ return ( Mathf . Pow ( ( float ) Math . E , this . _r * time ) *
223
223
( this . _c1 * Mathf . Cos ( this . _w * time ) + this . _c2 * Mathf . Sin ( this . _w * time ) ) ) ;
224
224
}
225
225
226
226
public override float dx ( float time ) {
227
- float power = Mathf . Pow ( Mathf . Epsilon , this . _r * time ) ;
227
+ float power = Mathf . Pow ( ( float ) Math . E , this . _r * time ) ;
228
228
float cosine = Mathf . Cos ( this . _w * time ) ;
229
229
float sine = Mathf . Sin ( this . _w * time ) ;
230
230
return ( power * ( this . _c2 * this . _w * cosine - this . _c1 * this . _w * sine ) +
0 commit comments