Time and coordinates based cubes rotation
              in 
             Programming Questions 
              •  
              1 years ago    
            
 
           
             Hello everyone,
            
             
            
             
            
            
             
            
            
             
            
            
 
            
           
             what I am trying to do is to create a wall of cubes that rotare according to time and mouseY.
            
            
              I took this example as reference: 
              http://processing.org/learning/3d/pushpopcubes.html
             
            
             In here cubes rotate on both axes and by themselves.
            
            
             What I would like to have is something like this:
            
            
             if there is no motion, then cubes stand still
            
            
             if I move my mouse on the Y axis, then cubes near by the mouse rotate faster, and the more fare away from the mouseY cubes are, the slowest they rotate. 
            
            
             At this point, if I don't move my mouse, after a while all cubes stops rotating (cubes that rotate faster will stop later).
            
            
             I really don't know how to start this, I am quite a newbie in 3D interactivity, and in processing in general.
            
            
             Thank you for helping!
            
 
            
              
              1  
            
 
            