From c359530c2599d462c17e020d8337d91c478fd845 Mon Sep 17 00:00:00 2001 From: group1 Date: Sun, 16 Oct 2016 23:32:33 -0400 Subject: Dolphin attempt 2, it almost looks good --- fish_types.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fish_types.py') diff --git a/fish_types.py b/fish_types.py index 6d24675..1f50104 100644 --- a/fish_types.py +++ b/fish_types.py @@ -117,7 +117,7 @@ class Dolphin(Fish): width = 35 height = 1.5 tailThreshold = 0.7 - tailDuration = 2 + tailDuration = 4 tailAccelMag = 0.4 gravity = C.Vector(0, -0.01) @@ -128,11 +128,11 @@ class Dolphin(Fish): return False if not self.direction_fixed: - self.tailAcceleration = self.tailAcceleration.rot2d(math.pi / 32) + self.tailAcceleration = self.tailAcceleration.rot2d(math.pi / 30) self.direction_fixed = True self.speed += self.drag * self.speed + self.gravity - if self.y <= 0.25: + if self.y <= 0.4: self.tailMoving = True if self.tailMoveCount > self.tailDuration: self.tailMoveCount = 0 -- cgit v1.3.1