|  | 
| 
			 
			#1  
			
			
			
			
			
		 | |||
| 
 | |||
| 
				
				Trouble with adding actions
			 
			
			Hello, I have been grappling with adding two animate actions and I am unable to get the animation I intended. I am trying to make a car model move forward and turn right after a certain length. I used one of the samples to do it: Code: import viz
viz.go()
viz.add('tut_ground.wrl')
wheel = viz.add('mini.osgx')  
viz.move(0,0,-10)
viz.clearcolor(viz.SKYBLUE) 
moveForward = vizact.move(0, 0, 2,1) 
turnRight = vizact.spin(0,1,0,90,1) 
moveInSquare = vizact.sequence(moveForward, turnRight, 2) 
wheel.addAction(moveInSquare)correctly. The turning is about the center of the car model. I figured I need to add a Code: wheel.center(x,y,z) Code: import viz
viz.go()
viz.add('tut_ground.wrl')
wheel = viz.add('mini.osgx')  
wheel.center(0.5,0,-0.5) # Added this piece of code
viz.move(0,0,-10)
viz.clearcolor(viz.SKYBLUE) 
moveForward = vizact.move(0, 0, 2,1) 
turnRight = vizact.spin(0,1,0,90,1) 
moveInSquare = vizact.sequence(moveForward, turnRight, 4) 
wheel.addAction(moveInSquare)Code: wheel.center(x,y,z) Is there something I am missing? Any suggestions would be extremely helpful. Thanks, Vijay. Last edited by vijaykiran; 10-05-2009 at 03:19 PM. Reason: Forgot to enable email notification | 
|  | 
| Thread Tools | |
| Display Modes | Rate This Thread | 
| 
 | 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| trouble tracking multiple lights | Vkathrynr | Precision Position Tracker (PPT) | 2 | 08-26-2009 12:07 PM | 
| adding more than 1 action for avatar animation slider control | yak | Vizard | 0 | 07-21-2009 11:22 AM | 
| Trouble transitioning from one vizard | DBurks2818 | Vizard | 3 | 04-28-2009 02:46 PM | 
| How to make avatar's eyes to blink when speaking | michelcm3 | Vizard | 12 | 01-15-2008 08:48 AM | 
| Weird lagging/choppiness when avatars perform actions | vjonshih | Vizard | 8 | 11-30-2004 04:08 PM |