@@ -4,17 +4,17 @@ Implement multiple solvers for damped harmonic oscillator.
4
4
5
5
Solvers:
6
6
7
- - [x] [ Closed-form solution for the ODE] ( http://www.ryanjuckett.com/programming/damped-springs/ )
8
- - [x] [ Semi-implicit Euler method] ( https://en.wikipedia.org/wiki/Semi-implicit_Euler_method )
9
- - [x] [ Explicit Runge-Kutta 4th order aka RK4] ( https://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods )
10
- - [x] [ Verlet Integration] ( https://en.wikipedia.org/wiki/Verlet_integration )
7
+ - [x] [ Closed-form solution for the ODE] ( http://www.ryanjuckett.com/programming/damped-springs/ )
8
+ - [x] [ Semi-implicit Euler method] ( https://en.wikipedia.org/wiki/Semi-implicit_Euler_method )
9
+ - [x] [ Explicit Runge-Kutta 4th order aka RK4] ( https://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods )
10
+ - [x] [ Verlet Integration] ( https://en.wikipedia.org/wiki/Verlet_integration )
11
11
12
12
Maybe not:
13
13
14
- - [ ] [ Explicit Euler aka Forward Euler] ( https://en.wikipedia.org/wiki/Euler_method )
15
- - [ ] [ Implicit Euler aka Backward Euler] ( https://en.wikipedia.org/wiki/Backward_Euler_method )
16
- - [ ] [ Mid-point method] ( https://en.wikipedia.org/wiki/Midpoint_method )
17
- - [ ] [ Implicit Runge-Kutta 4th order aka RK4] ( https://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods#Implicit_Runge%E2%80%93Kutta_methods )
14
+ - [ ] [ Explicit Euler aka Forward Euler] ( https://en.wikipedia.org/wiki/Euler_method )
15
+ - [ ] [ Implicit Euler aka Backward Euler] ( https://en.wikipedia.org/wiki/Backward_Euler_method )
16
+ - [ ] [ Mid-point method] ( https://en.wikipedia.org/wiki/Midpoint_method )
17
+ - [ ] [ Implicit Runge-Kutta 4th order aka RK4] ( https://en.wikipedia.org/wiki/Runge%E2%80%93Kutta_methods#Implicit_Runge%E2%80%93Kutta_methods )
18
18
19
19
Performance rough check with 2.6 GHz Intel Core i7:
20
20
@@ -28,6 +28,12 @@ via Package Manager UI
28
28
ssh://[email protected] /thammin/unity-spring.git
29
29
```
30
30
31
+ via [ OpenUPM] ( https://openupm.com/packages/com.thammin.unity-spring/ )
32
+
33
+ ```
34
+ openupm add com.thammin.unity-spring
35
+ ```
36
+
31
37
# Usage
32
38
33
39
Every solver is just a [ simple class] ( https://github.com/thammin/unity-spring/blob/master/Runtime/SpringBase.cs ) with few fields.
@@ -83,16 +89,16 @@ float exp = 1F / (1F + x + 0.48F * x * x + 0.235F * x * x * x);
83
89
84
90
Analytical:
85
91
86
- - http://www.entropy.energy/scholar/node/damped-harmonic-oscillator
87
- - https://doc.lagout.org/Others/Game%20Development/Programming/Game%20Programming%20Gems%204.pdf
92
+ - http://www.entropy.energy/scholar/node/damped-harmonic-oscillator
93
+ - https://doc.lagout.org/Others/Game%20Development/Programming/Game%20Programming%20Gems%204.pdf
88
94
89
95
Numerical:
90
96
91
- - http://box2d.org/files/GDC2015/ErinCatto_NumericalMethods.pdf
97
+ - http://box2d.org/files/GDC2015/ErinCatto_NumericalMethods.pdf
92
98
93
99
General:
94
100
95
- - https://hplgit.github.io/num-methods-for-PDEs/doc/pub/vib/pdf/vib-4print-A4-2up.pdf
101
+ - https://hplgit.github.io/num-methods-for-PDEs/doc/pub/vib/pdf/vib-4print-A4-2up.pdf
96
102
97
103
# License
98
104
0 commit comments