Hi,
Ive been messing around with Ode, and im impressed. Good work.
One thing tho, is that im trying to get the names (or the actual Geom) from a collision.
I am doing this:
// collide objects in a given space
collision.collide(space);
// read and modify contact information
iterateContacts();
// apply the contact information for the collisions
collision.applyContacts();
// and step fast in the world
world.stepFast();
Btw, collision is a type of JavaCollision;
And iterateContacts is:
for (int i = 0; i < collision.getContactCount(); i++) {
contact.setIndex(i);
contact.setMode(Ode.dContactBounce | Ode.dContactApprox1);
contact.setBounce(0.004f);
contact.setBounceVel(0.002f);
contact.setMu(100f);
}
Now I can get their ID’s:
contact.getGeomID1(); and that returns an int, not a String or a Geom object.
Any ideas?