--- olympic.orig/race_obstacles.py 2005-07-11 20:10:41.735779944 +0300 +++ olympic/race_obstacles.py 2005-07-11 20:52:33.719900312 +0300 @@ -1459,6 +1459,32 @@ p = Point( x , 0 , z ) self.union.add( MeshPyramid( p1 , p2 ).at( p ).withColor(Color( random.random()*.5,1, random.random()*.9)) ) +class RadarHop( RaceObstacle ) : + name = "RadarHop" + allowRotation = False + def __init__( self , context ): + RaceObstacle.__init__( self ) + + maxjump = 96 + lenght = 140 + + zhalfsize = lenght / 2 + xhalfsize = ( context.trackWidth + 5 ) / 2 + + p1 = Point( zhalfsize , -10 , zhalfsize ) + p2 = Point( -zhalfsize , 0 , -zhalfsize ) + self.tracksUnion.add( Box( p1 , p2 ) ) + + z = random.randint( zhalfsize - maxjump , -zhalfsize + maxjump ) + + boxhalfsize = (4 - context.level) * 10 + + p1 = Point( -xhalfsize , 0 , z - boxhalfsize ) + p2 = Point( xhalfsize , -0.25 , z + boxhalfsize ) + + self.union.add( MeshBox( p1 , p2 ).withColor(Color(0,0,0,0)) ) + + #Obstacle: RandomCones #Description: The obstacle name says it all. # Some randomly placed cones.