From 006fb3dcabc9600997f5c3c8fcc5e80baa7fc1e0 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Tue, 16 Mar 2010 02:30:09 -0700 Subject: [PATCH] Bullet: Track previous X/Y. --- bulletml/impl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bulletml/impl.py b/bulletml/impl.py index 6fe1641..4dde9fb 100644 --- a/bulletml/impl.py +++ b/bulletml/impl.py @@ -287,6 +287,8 @@ class Bullet(object): created.extend(action.step()) direction = math.radians(self.direction) + self.px = self.x + self.py = self.y self.x += self.mx + math.sin(direction) * self.speed self.y += self.my - math.cos(direction) * self.speed -- 2.20.1