mirror of
				https://github.com/RGBCube/rgbcube.github.io
				synced 2025-10-31 15:02:45 +00:00 
			
		
		
		
	Start spinning slowly and slowly speed up
This commit is contained in:
		
							parent
							
								
									cd8a891bd7
								
							
						
					
					
						commit
						d2c919227a
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		
							
								
								
									
										3
									
								
								cube.js
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								cube.js
									
										
									
									
									
								
							|  | @ -208,7 +208,8 @@ const orientation = { | |||
|       } | ||||
| 
 | ||||
|       if (window.performance.now() - mouse.lastMove > 10_000) { | ||||
|         velocity = new Vec3(1, 1, -1); | ||||
|         const impulse = new Vec3(1, 1, -1); | ||||
|         velocity = Vec3.sum(impulse.scale(effectiveDelta * 3), velocity); | ||||
|       } | ||||
| 
 | ||||
|       const axis = new Vec3(velocity.x, velocity.y, velocity.z) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 RGBCube
						RGBCube