Basically I'm running a test, it involves writing out a list of positions of a node.
I've tried this numerous ways, but here's the current version premise:
Code: Select all
ISceneNode *nod = (ISceneNode*)dGeomGetData(rec_id);
core::vector3df pos = nod->getPosition();
rec->add(pos);
Code: Select all
void add(vector3df pos){
nums.push_back(RXVec(pos.X,pos.Y,pos.Z));
}
I also tried:
Code: Select all
dReal* ode_pos =(dReal*)dGeomGetPosition(rec_id);
rec->add((float)ode_pos[0],(float)ode_pos[1],(float)ode_pos[2]);
Just in case, rec_id prints out as hex, and comes from a vector of dGeomID's:
Code: Select all
dGeomID rec_id = (dGeomID)geoms[1];
Any ideas or guidance please.