Hi, In fact, just as I said before, all data structures of this engine are based on python basic type data structures. 2d vector type is just same as complex type in concept and C implementation, so I just use Python complex type and add some functions for advanced vector usages. I think maybe it's not a bad idea to treat physics 2d vector space as complex number space. But I also separate the main code from vector code, replacing it with a distinct vector type will be easy, maybe it will support it after the first stable release. Best Wishes Zhang Fan Lenard Lindstrom <[EMAIL PROTECTED]> 写道: Hi,
I had a quick look at the vector code in SVN. I see that the glVector2d is just a Python complex type. Is this simply for prototyping? Will the finished module support a distinct vector type? Lenard 帆 张 wrote: > Hi , > Thank you very much, I'd like to see your advices and get help from > you. I also want to tell the difference between chipmunk(and Pymunk) > and this project, this one is not separated with python, all of its > basic data structures are based on python data structures, which means > it can be integrated in python seamlessly . Also some classes are > targeted to integrate physics updating and pygame sprite rendering, > which means user can write their physics games more easily. > API defines and my working progress are on my yahoo blog: > http://i.cn.yahoo.com/zhangfanfox/blog/ , and current working code is > on a branch of pygame svn: _svn://seul.org/svn/pygame/branches/physics _ > Best wishes > Zhang Fan > > */Peter Gebauer /* 写道: > > Hi! > > I read Zhang Fan's post regarding his gsoc project, I've been > looking to do > something similar, a Python extension for an already existing library. > So far I've extended Chipmunk partially over a few days of > prototyping, but > there's no point in having two projects doing the same thing, I'd > like to > know a bit bout the plans of the physics module for PyGame. (if > you're > reading this, Zhang) > I could also help out with some testing/patching for the C Python > stuff. > --------------------------------- 雅虎邮箱,您的终生邮箱!