[ODE] dBodySetData

Chunky Kibbles chunky at icculus.org
Mon Jun 13 02:48:27 MST 2005


On Sun, Jun 12, 2005 at 11:39:25PM -0500, Mohamed Matar wrote:
> Hi everyone,
> What is this function for dBodySetData. Do I need to call it after I set
> Position, rotation, velocities and forces ?. What is the parameter passed.
> Please give examples. 

It's just a pointer to something. You can do whatever you want with it.
For example, you could ignore it.

Alternatively, for an example, it might be the name of a body;

const char *name = "ABody";
...
dBodySetData(body, (void *)name);
..
printf("Body Name: %s\n", (const char *)dBodyGetData(body));


Gary (-;


More information about the ODE mailing list