From: Timothy S. <pe...@us...> - 2004-10-23 12:48:00
|
Update of /cvsroot/pyode/pyode/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16076/src Modified Files: ode.pyx Log Message: - Added a new example to demonstrate the simulation of a vehicle. - Added the wrapper ode.areConnected() for dAreConnected(). - Added support for the <mass><box/></mass> in the XODE parser. Index: ode.pyx =================================================================== RCS file: /cvsroot/pyode/pyode/src/ode.pyx,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** ode.pyx 3 Aug 2004 07:19:13 -0000 1.9 --- ode.pyx 23 Oct 2004 12:47:51 -0000 1.10 *************** *** 194,197 **** --- 194,209 ---- return res + def areConnected(Body body1, Body body2): + """Return True if the two bodies are connected together by a joint, + otherwise return False. + """ + + if (body1 is environment): + return False + if (body2 is environment): + return False + + return bool(dAreConnected(<dBodyID> body1.bid, <dBodyID> body2.bid)) + def CloseODE(): """CloseODE() |