From: Chris M. <ch...@mc...> - 2006-01-09 01:53:43
|
On Sat, Jan 07, 2006 at 11:02:12PM +0800, Simon Wittber wrote: > I'm attempting to use PyODE for a 2D platform game. > > The below code is not doing what I expect. > > self.space = space = ode.Space() > self.back = ode.GeomPlane(space, (0,0,1), 1) > self.front = ode.GeomPlane(space, (0,0,-1),-1) > > What I want to do is sandwich my world between two vertical infinite > planes. Am I going about this the right way? Hi Simon, I beleive it's possible to use ODE as a 2d engine just by keeping all your z values at zero. Check out tutorial2.py in the examples that come with PyODE. That is, make everything in your world have no thickness and no z values at all. Best, Chris. ------------------- ch...@mc... http://mccormick.cx |