Skip to content

Commit

Permalink
rework timing
Browse files Browse the repository at this point in the history
  • Loading branch information
kitlangton committed Jun 15, 2021
1 parent 1c7a0ac commit 100b6a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/src/main/scala/animus/Spring.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ final class Spring(
var velocity: Double = 0,
var target: Double = 0,
var lastTime: Double = -1,
stiffness: Double = 175,
damping: Double = 28,
stiffness: Double = 170,
damping: Double = 26,
precision: Double = 0.005
) extends js.Object { self =>

def tick(t: Double): Unit = {
val delta =
// if (lastTime == -1.0) {
1.0 / 50.0
1.0 / 65.0
// } else {
// (t - lastTime) / 1000.0
// }
Expand Down

0 comments on commit 100b6a5

Please sign in to comment.