Browse Source

improved cycle path

master
Fr3deric 7 years ago
parent
commit
ad9b697b05
  1. 2
      generators/movingshapes.py

2
generators/movingshapes.py

@ -150,7 +150,7 @@ class World:
def update(self, t, dt): def update(self, t, dt):
self.pos = Point( self.pos = Point(
int(math.sin((t * math.pi/self.cycletime)*5) * self.size.x), int(math.sin((t * math.pi/self.cycletime)*4) * self.size.x),
int(math.cos((t * math.pi/self.cycletime)*5) * self.size.y) int(math.cos((t * math.pi/self.cycletime)*5) * self.size.y)
) )

Loading…
Cancel
Save