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:
1 2 3 4 5 6 7 8 9 10 11
| collision.collide(space); iterateContacts(); collision.applyContacts(); world.stepFast(); |
Btw, collision is a type of JavaCollision;
And iterateContacts is:
1 2 3 4 5 6 7
| 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?