[ODE] Does dBodyID have an associated int value (real id)?

Jon Watte (ODE) hplus-ode at mindcontrol.org
Tue Sep 12 11:47:24 MST 2006


If you are on a 32-bit platform, you can cast dBodyID to int.

If you are on a 64-bit platform, you will have to build a hash table or 
similar to do look-up between dBodyID and int identifiers, or stick an 
int in the data you point at with dBodySetData().

Cheers,

          / h+


michael kapelko wrote:
> I use Irrlicht and its graphics objects can accept int id which I want 
> to use for identification. Since all such objects have associated ODE 
> body, I want to get ODE body by retreiving graphics object int id and 
> indentifying to which body this object is attached. But dBodyID is not 
> an int. So is there any way to get int id from dBodyID?
> Thanks.
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>
>
>   


More information about the ODE mailing list