WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-27-2010, 12:30 AM
meck meck is offline
Member
 
Join Date: Oct 2010
Location: Japan
Posts: 3
how to accelerate and decelerate

Hello,

I 'm creating the intersection now.I drive a car using an animation path.Then,I'd like to know how to accelerate in a straight line,and decelerate in a curve.if anyone has any idea please let me know.

Thanks.

Code:
path0 = viz.addAnimationPath()

positions0 = [[-1,0,62],[11,0,35],[18,0,16],[0,0,2],[-365,0,2]]

for x in range(0,len(positions0)):
	cp = viz.addControlPoint()
	cp.setPosition(positions0[x])
	path0.add(cp,x)

path0.speed(1)
path0.translatemode(viz.BEZIER)
path0.setAutoRotate(viz.ON)
path0.loop(viz.LOOP)

link0=viz.link(path0,car0)

path0.play()
Reply With Quote
Reply

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


All times are GMT -7. The time now is 11:07 PM.


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