On 22/04/07, Martijn Kragtwijk <[EMAIL PROTECTED]> 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).

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Pyode-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyode-user

Reply via email to