79821217

Date: 2025-11-16 00:50:38
Score: 1
Natty:
Report link

Ah, you're missing self in your update() method! That's why Python can't find your instance variables.

Your method should look like this:

def update(self):
    self.velocity = self.velocity.add(self.acceleration)
    self.position = self.position.add(self.velocity)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: EchoOverflow