Fixed velocity computation in Throwable

This commit is contained in:
2019-05-31 10:15:50 +02:00
parent cc49df6e55
commit 8752d47e01
3 changed files with 47 additions and 25 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ class Throwable {
}
meanVelocity(milliseconds = 30) {
this.addVelocity({ x: 0, y: 0 })
this.addVelocity({ x: 0, y: 0, number: 1 })
let sum = { x: 0, y: 0 }
let count = 0
let t = 0