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

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



The Bug is now fixed on bitbucket (issue 214).
It occurred when you pass an angle of between (360-Vector2().epsilon) and 360.

I hope you can compile pygame your self or work around this bug or wait for the next release.

Again, thanks for reporting!

Cheers,
Lorenz


On 03/11/14 00:23, Lorenz Quack wrote:
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>