From: Lionel b. De N. <lio...@fr...> - 2006-03-16 19:49:04
|
Hello all, I face a strange problem using pyODE. [ I am quite new with this engine, but I think I have done my homework and read the doc carefully. So I hope i won't add Noise in the mailing list.] Mainly, the objects are inter penetrating. I have read the faq (especially this section http://www.ode.org/ode-latest-userguide.html#sec_12_3_0 ) but I am quite surprised of the low quality of the result I get (i.e the deepness of interpenetration). I have few object, all of them are axis aligned boxes. Collision Detection and response should be quite simple, at least much simpler than with complex meshes. You can look the script at this address : http://pastebin.com/605773 I have set up a group of cubes with a initial linear velocity and let the glide and bounce inside a room (simulated by a list of GeomPlane). This simulation is supposed to be 2D, so I constrained the cubes with a very low ceiling (slightly higher than they are) and I reset their Z coord (position; speed, rotation) to their original value. I had to do this because, if not, the cubes would go upward or downward after a collision (???). Frankly, I am quite puzzled by the whole thing. So if a generous soul wants to help, any input is welcome. -- Lionel Barret De Nazaris ================================================= Gamr7.com > http://www.gamr7.com |