Frames of reference

Combining PyODE and pygext continues to prove to be challenging. A Euclidean frame of reference with the usual x and y directions and angular mapping in radians will require a set of translation functions to convert to pygext's frame of reference, where 0 degrees starts at twelve o'clock.

Because of the sparse documentation of pygext, one basically has to experiment with the system to figure out the behaviour and its underlying frame of reference. It's a little like discovering a new physical realm.

The moral is to test early and often. Weaving whole cloth code before running means that you'll probably have to rewrite most of your code because some notions you had of the framework are false.

But at least now our glider behaves as if it really is being driven by the steam jets!

(log in to comment)

Comments

It'll be interesting to see how you've combined them. I just lazily decided to use "fake" physics for my entry. :) If you have more questions about pygext, you can send me mail at shang@iki.fi or contact me on the #pyweek irc channel.