| |||||||||||
PyWeek - Frames of referenceCombining 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!
— ataraxia on 2006/03/29 09:27 of PrettyFace Comments: (log in to comment) |
Last Challenge
September 2008 [entries, ratings] Previous March 2008 [entries, ratings] September 2007 [entries, ratings] April 2007 [entries, ratings] September 2006 [entries, ratings] > March 2006 [entries, ratings] (June 2006) August 2005 [entries, ratings] Not logged in Login | ||||||||||
By shang on 2006/03/29 15:48:
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.