From: Thomas P. <tho...@fr...> - 2006-01-09 21:41:07
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <br> <blockquote cite="mid...@mc..." type="cite"> <blockquote type="cite"> <pre wrap="">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? </pre> </blockquote> <pre wrap=""><!----> 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. </pre> </blockquote> Hello,<br> <br> A patch for a Plane2D joint is available on the Ode mailing list archive. With a little hack on PyOde, maybe this new joint type could be available for Python.<br> <br> Here is a link to this patch:<br> <br> <a class="moz-txt-link-freetext" href="http://q12.org/pipermail/ode/2003-November/010325.html">http://q12.org/pipermail/ode/2003-November/010325.html</a><br> <br> Thomas<br> </body> </html> |