import Vector
class Ball:
radius: float
color: str
position: Vector.Vector
velocity: Vector.Vector
acceleration: Vector.Vector
def __init__(self, radius, color,position, velocity, acceleration):
self.radius = radius
self.color = color
self.position = position
self.velocity = velocity
self.acceleration = acceleration
def update():
velocity = velocity.add(acceleration)
position = position.add(velocity)
The problem I'm having is that the acceleration in the update function is registering that acceleration is a state variable, and it is saying it is not defined
self.