TR: [ODE] Null Pointer...
Eric Trousset
eTrousset at wanyrobotics.com
Mon Jun 16 23:23:01 2003
Hi,
It normal that you get a null pointer.
When you create a geom, it has got any body attached to it.
You must create a new body using dCreateBody or something
like that, and then
attach it to the geom using a function like gGeomSetBody( the
new body )
Then, calls to dGeomGetBody will return a pointer the body
you've attached.
> > -----Message d'origine-----
> > De : Marco Vienup [mailto:Marco@vienup.de]
> > Envoyé : lundi 16 juin 2003 19:09
> > À : ode@q12.org
> > Objet : [ODE] Null Pointer...
> >
> >
> > Hi,
> > if a use:
> >
> > geomB=dCreatePlane(space, a, b, c, d);
> >
> > const dBodyID b2=dGeomGetBody(geomB);
> >
> > I become a null Pointer...? Can someone explain it ?
> >
> > thx
> > Marco
> > _______________________________________________
> > ODE mailing list
> > ODE@q12.org
> > http://q12.org/mailman/listinfo/ode
> >
>