For some reason, OdeGeom doesn’t appear to actually provide the getId() method. I’m using the panda3d_1.6.2-ubuntuhardy_i386.deb package, and when I try to call getId() with an OdeGeom object, I get
AttributeError: ‘libpandaode.OdeGeom’ object has no attribute ‘getId’
When I run
from pandac.PandaModules import *
help(OdeGeom)
From the interactive python interperter, I don’t see it either. This seems really odd, since in
/usr/share/panda3d/pandac/input/libpandaode.in I see
901 6 get_id 4 1252 15 OdeGeom::get_id 0 1 280 246
////////////////////////////////////////////////////////////////////
// Function: OdeGeom::get_id
// Access: Published
// Description: Returns the underlying dGeomID.
////////////////////////////////////////////////////////////////////
43
inline dxGeom *OdeGeom::get_id(void) const;
Does this method exist for other people using 1.6.2? It’s pretty important for me. I need it to efficiently get from colliding OdeGeoms to the characters they are for. Otherwise, I need to loop through all the possible geoms and test if they are equal.