[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] bug in pygame.math.Vector2 vector2_rotate_helper



I'll look into it.
Thanks for reporting!


On 03/11/14 00:15, ÐÐÐÐÐ ÐÐÐÑ wrote:
Hello, i've got a bug in Pygame code and the error message tells me to report it here :)

Code:

import pygame

vector = pygame.math.Vector2(0, 1)
angle = 0

try:
while True:
vector.rotate(angle)
angle += 1.2

except Exception as e:
print "%.20f" % angle
print e

Output:

Please report this bug in vector2_rotate_helper to the developers at pygame-users@xxxxxxxx <mailto:pygame-users@xxxxxxxx>

System:

win7 64, python32 2.7.8, pygame-1.9.2a0.win32-py2.7.msi

Next call produces the same error:

pygame.math.Vector2(0, 1).rotate(359.99999999999801048034)

--

<author>Pavel Shvets</author>
</mail>