I imported math. whenever I try to use it and run the code, I get this error:
AttributeError: module 'pygame.math' has no attribute 'sin'
This is my code:
def move(steps,):
try_move(steps * math.sin(direction),0)
try_move(0,steps * math.cos(direction) )
mathpygame.math.Vector2(steps)and later userotate(direction)to get the same values without usingsteps*sin()andsteps*cos()