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()