You should use your objects and store handles to ODE bodies in them on creation. That is, you should not really work with ODE handles in your code directly – you should have wrapped them in some sort of your classes. And then you can do whatever you want: put them in collections, arrays, — whatever. And for the reverse reference if you get an ODE handle in a callback you can store a tag in each ODE object. That tag could be a pointer (or any other sort of key) for you to transit to your custom object having ODE handle.
-- Skype with underscore
GPG Key Fingerprint: 2F56 32DC DCD9 B2BB 06E9 39E8 A37E 5E60 376E C691
You received this message because you are subscribed to the Google Groups "ode-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ode-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ode-users/8aa3eb23-a5c6-45e8-8624-40582a2463cbn%40googlegroups.com.