|  | 
|  | 
| 
			 
			#1  
			
			
			
			
			
		 | |||
| 
 | |||
| 
				
				Make camera rotate 360 in either yaw pitch or roll forever
			 
			
			Hi,  So I've been working on this for awhile and can't find a good solution. How can I make the camera spin 360 degrees in either yaw axis, pitch axis or roll axis non-stop and I can stop it and restart it by just pressing the space bar? | 
| 
			 
			#2  
			
			
			
			
			
		 | |||
| 
 | |||
| 
			
			Here's an example: Code: import viz
import vizact
viz.go()
viz.add('piazza.osgb')
viewNode = viz.addGroup()
viewLink = viz.link(viewNode, viz.MainView)
viewNode.setPosition([0,2,0])
spinAction = vizact.spin(0,1,0,20,viz.FOREVER)
viewNode.addAction(spinAction)
def pauseAndRestart():
	if viewNode.getAction():
		viewNode.clearActions()
	else:
		viewNode.setEuler([0,0,0])
		viewNode.addAction(spinAction)
vizact.onkeydown(' ', pauseAndRestart) | 
|  | 
| Tags | 
| camera, events, rotation, spinning | 
| 
 | 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| rotate camera about an object | dwaik | Vizard | 2 | 02-09-2010 01:06 AM | 
| The problem of tracker using via VRPN | _kj_ | Vizard | 2 | 08-13-2009 12:03 AM | 
| question about yaw, pitch, roll | TunTun | Vizard | 2 | 05-23-2007 12:46 PM |