Fixed timestamp name mismatch.
This commit is contained in:
		
							parent
							
								
									07f50974f9
								
							
						
					
					
						commit
						45d081c225
					
				| @ -138,10 +138,8 @@ class Throwable { | |||||||
|         this.autoThrow = autoThrow |         this.autoThrow = autoThrow | ||||||
|         this.velocities = [] |         this.velocities = [] | ||||||
|         this.velocity = null |         this.velocity = null | ||||||
|         this.timestamp = null |         this.lastframe = null | ||||||
|         this.onThrowFinished = onThrowFinished |         this.onThrowFinished = onThrowFinished | ||||||
|         this._requestAnimation = 0 |  | ||||||
|         //console.log("onThrowFinished", onThrowFinished)
 |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     static defaultThrow() { |     static defaultThrow() { | ||||||
| @ -182,6 +180,7 @@ class Throwable { | |||||||
| 
 | 
 | ||||||
|     addTestVelocity(delta, dt=20, buffer = 5) { |     addTestVelocity(delta, dt=20, buffer = 5) { | ||||||
|         let t = performance.now() |         let t = performance.now() | ||||||
|  |         this.lastframe = t | ||||||
|         let velocity = { |         let velocity = { | ||||||
|             t: t, |             t: t, | ||||||
|             dt: dt, |             dt: dt, | ||||||
| @ -216,6 +215,7 @@ class Throwable { | |||||||
|     killAnimation() { |     killAnimation() { | ||||||
|         this.velocity = null |         this.velocity = null | ||||||
|         this.velocities = [] |         this.velocities = [] | ||||||
|  |         this.lastframe = null | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     startThrow() { |     startThrow() { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user