def calculate_y( self, dt ): y = self.owner.bottom self.owner.bottom = physics.position( y, self.vy, self.ay, dt ) self.vy = physics.velocity( self.vy, self.ay, dt )
def calculate_x( self, dt ): self.owner.x = physics.position( self.owner.x, self.vx, self.ax, dt ) self.vx = physics.velocity( self.vx, self.ax, dt )