Fixed timestamp name mismatch.

This commit is contained in:
Uwe Oestermeier 2023-07-21 12:44:03 +02:00
parent 07f50974f9
commit 45d081c225
1 changed files with 3 additions and 3 deletions

View File

@ -138,10 +138,8 @@ class Throwable {
this.autoThrow = autoThrow
this.velocities = []
this.velocity = null
this.timestamp = null
this.lastframe = null
this.onThrowFinished = onThrowFinished
this._requestAnimation = 0
//console.log("onThrowFinished", onThrowFinished)
}
static defaultThrow() {
@ -182,6 +180,7 @@ class Throwable {
addTestVelocity(delta, dt=20, buffer = 5) {
let t = performance.now()
this.lastframe = t
let velocity = {
t: t,
dt: dt,
@ -216,6 +215,7 @@ class Throwable {
killAnimation() {
this.velocity = null
this.velocities = []
this.lastframe = null
}
startThrow() {