10 vel = Scale (self.GetParent().GetOrientation()[2],speed)
11 self.MatchLinearVelocity(0,vel,0,1)
12 self.AddReplaceLastOrder(1)
13 self.GetParent().setSpeed(speed)
16 self.
speed = vsrandom.uniform (maxspeed/3,maxspeed);
26 VS.PythonAI.Execute(self)
28 parent = self.GetParent()
31 if (car_lib.isCar (un)):
32 posdiff=
SafeNorm(Sub (un.Position(),parent.Position()))
34 distInOneSec = Dot (
Sub(parent.GetVelocity(),un.GetVelocity()),posdiff)
35 if (distInOneSec>un.getDistance(parent)
and Dot (posdiff,un.GetOrientation()[2])>0):
52 print 'AI creation successful'