Fixed velocity computation in Throwable
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user