0
def CalculateAcceleration(self):
    currentTheta = math.atan(self.velocity[1]/self.velocity[0])
    currentSquaredVelocity = math.pow(self.velocity[0],2)+math.pow(self.velocity[1],2)
    accelerationMagnitude = currentSquaredVelocity*self.coeffD
    self.acceleration = [math.cos(currentTheta)*accelerationMagnitude, math.sin(currentTheta)*accelerationMagnitude]
    self.acceleration = [self.acceleration[0], self.acceleration[1]-self.g]

I believe this is where the problem is and it only happens when the the projectile is going to the right.

not working...

working

1 Answers1

0

I forgot the negative sign in the force calculation