pygame is
Simple DirectMedia Layer is
Site Swing
3D Rotations

3D Rotations - 2.0.0

Ian Mallett (geometrian)



OK, before you start, you need to know a little math.
For starters, the 2D games most people make use 1 angle.
Spherical coordinates use 2.
This uses 3, and is comparable in complexity to a 4-dimensional coordianate system.
To solve this problem, I had to resort to matrices to do my trigonometry. Anyway, it was all very complicated, and I spent all day yesterday, working an hour into today to make it work. It doesn't look like much, but it was really, really, really, so hard.
Naturally, since I'm SUCH a nice person, I'm giving it here so you don't waste half your weekend staring into space trying to get this working.


Home Page:


click to view original size


3D Rotations - 2.0.0 - Feb 10, 2008 account Comments

If you wish to leave a comment with your account, please sign in first.

March 4, 2008 8:10pm - grace pow-sang - nickname: (sana) - 5/5
February 10, 2008 4:18am - Ian Mallett - nickname: (geometrian)
Version 2.0.0 released! (Version 1.0.0 was pre-release work).

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Oct 22, 2016

Oct 17, 2016

Oct 11, 2016

Oct 10, 2016

Oct 3, 2016

Oct 1, 2016

Sep 29, 2016

Sep 19, 2016

Sep 17, 2016

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)