From: Matthias B. <mb...@us...> - 2005-03-03 09:36:25
|
Update of /cvsroot/pyode/pyode/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18676/src Modified Files: geomobject.pyx Log Message: Category and collide bits can now also be passed as int instead of long. Updated the doc which was wrong. Index: geomobject.pyx =================================================================== RCS file: /cvsroot/pyode/pyode/src/geomobject.pyx,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** geomobject.pyx 15 Nov 2004 20:16:03 -0000 1.2 --- geomobject.pyx 3 Mar 2005 09:36:16 -0000 1.3 *************** *** 219,225 **** @param bits: Collide bit field ! @type bits: int """ ! dGeomSetCollideBits(self.gid, bits) def setCategoryBits(self, bits): --- 219,225 ---- @param bits: Collide bit field ! @type bits: int/long """ ! dGeomSetCollideBits(self.gid, long(bits)) def setCategoryBits(self, bits): *************** *** 229,238 **** @param bits: Category bit field ! @type bits: int """ ! dGeomSetCategoryBits(self.gid, bits) def getCollideBits(self): ! """getCollideBits() -> int Return the "collide" bitfields for this geom. --- 229,238 ---- @param bits: Category bit field ! @type bits: int/long """ ! dGeomSetCategoryBits(self.gid, long(bits)) def getCollideBits(self): ! """getCollideBits() -> long Return the "collide" bitfields for this geom. *************** *** 241,245 **** def getCategoryBits(self): ! """getCategoryBits() -> int Return the "category" bitfields for this geom. --- 241,245 ---- def getCategoryBits(self): ! """getCategoryBits() -> long Return the "category" bitfields for this geom. |