WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 09-05-2008, 10:16 AM
whj whj is offline
Member
 
Join Date: Apr 2008
Posts: 60
Hi, I have another question on animation path.

When I use path.autorotate(), all my cars move along their current trajectory, which is great. But some of them move forward, and some of them move backward. I don't know how to control the rotation of the objects when I use animation path. The following is my code:

mybus = viz.add('schoolbus.3ds')
path = viz.add(viz.ANIMATION_PATH)

positions = [ [-40,1.25,-4], [-30,1.25,-3], [-20,1.25,-2], [-10,1.25,-6], [0,1.25,-30], [10,1.25,-10], [20,1.25,7], [30,1.25,-10], [50,1.25,2] ]
for x in range(0,len(positions)):
cp = viz.add(viz.CONTROL_POINT)
cp.setPosition(positions[x])
path.add(cp,x+1)
path.constantspeed(viz.ON,CAR_SPEED)

path.loop(viz.LOOP)
path.translatemode(viz.BEZIER)
path.setAutoRotate(viz.ON)
mybus.link(path)
path.play()


Thanks,
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
General question and question regarding arrays dan12345 Vizard 1 01-15-2008 10:15 AM
Animation Tracks.... k_iwan Vizard 2 03-26-2007 05:52 PM
Jumpy animation Elizabeth S Vizard 1 11-08-2006 02:11 PM
avatar animation problems jrodman Vizard 1 01-18-2006 09:12 AM
to rephrase my question... shai Vizard 2 10-27-2004 10:55 AM


All times are GMT -7. The time now is 02:23 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC