| 
		
	
		
		
			
			 
				
				Viewpoint Collision Issue
			 
			 
			
		
		
		
			
			Hello, 
 
I have created an fMRI task in which the user navigates forward and is stopped by colliding with an invisible torus.  The collision with the torus pauses navigation and brings up a screen with text.  After a keypress, the screen and torus go away and navigation is reenabled.  
 
This was all working well when I was using a joystick, but now I have switched to keyboard 6DOF navigation and on some trials the viewpoint continues to move even after it has collided with the torus.  I have attached the code below.  I realize it is probably very messy, but I would appreciate any help you can give. 
 
Thanks, 
Kelly 
 
 
[Note, after the end screen with the "+" you must press "t" to continue"
		 
		
		
		
			
		
		
		
		
		
		
		
		
	
	 |