From: Chris B. <chr...@gm...> - 2007-04-23 09:32:26
|
On 22/04/07, Martijn Kragtwijk <m.k...@ru...> wrote: > I've just started using pyode and I must say i find it a pleasure to > use. Keep up the good work! > One 'problem' I encountered however is that I couldn't find out how to > remove a body from the simulation. In 'regular' ODE there is the > function dBodyDestroy(dBodyID) but in pyode.body there is no comparable > destroy() method. Am I overlooking something or is there another way to > remove a body from the simulation? If you get rid of all of your references to the body it will be destroyed. So either 'del body_ref_variable' or let it go out of scope. Keep in mind that any Geom references you have will also have internal references to the body (Geom.body). You can clear it with Geom.setBody(None). |