mirror of
https://github.com/charmbracelet/harmonica.git
synced 2026-07-19 10:09:33 -06:00
Fix huge typo that was throwing off calculations
This commit is contained in:
parent
3bece8a812
commit
0b6d573edd
@ -204,6 +204,6 @@ func (s Spring) Update(pos, vel *float64, equilibriumPos float64) {
|
||||
oldPos := *pos - equilibriumPos
|
||||
oldVel := *vel
|
||||
|
||||
*pos = oldPos*s.posPosCoef + oldVel + s.posVelCoef + equilibriumPos
|
||||
*pos = oldPos*s.posPosCoef + oldVel*s.posVelCoef + equilibriumPos
|
||||
*vel = oldPos*s.velPosCoef + oldVel*s.velVelCoef
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user