Haperth

Results 6 comments of Haperth

This is the implementation I have been using to replace angle_to: ``` def turn_to(v1, v2): dot = v1.x * v2.x + v1.y * v2.y det = v1.x * v2.y -...

I also found this method useful: ``` def perpendicular(v): return Vector2(-v.y, v.x) ```

> For Vector2 objects, there are 2 perpendicular vectors of the same magnitude with opposite signs, so either one would have to be the default or a direction would have...

+1 on linux (ubuntu mate). https to http workaround works.

@llindstrom Thanks you have rescued my project. I had been through the docs and could not see any way to set alpha values for a surface (except setting the values...

@oddbookworm Thanks, I had missed those methods. In case anybody else needs this, an opencv format numpy image with transparency can be converted to a pygame surface as follows: `pygame.image.frombytes(array.tobytes(),...