[ODE] I myself faild to use "dBodyGetForce"....
Mahfuz Rahman
odeuser at yahoo.com
Thu Dec 16 22:04:57 MST 2004
I used the command in this position but got 0.000,
0.000,0.0000.... .I just joined some boxes with that
ball joint but dident gave any external force.But the
box's self weight were given appropriately.Gravity was
given appropriately.
actually what is the process of getting
"dBodyGetForce"
====================CODE================
/* simulation loop */
static void simLoop (int pause)
{
int i;
dReal sides[3]={SIDE,SIDE,SIDE};
printf("%lf ", dBodyGetForce (body[125])[0]);
printf("%lf ", dBodyGetForce (body[125])[1]);
printf("%lf ", dBodyGetForce (body[125])[2]);
================CODE=======================
I also put the code at last of code like this but that
time there was no result.
===============CODE==========================
printf("%f ", dBodyGetForce (body[25])[0]);
printf("%f ", dBodyGetForce (body[25])[1]);
printf("%f ", dBodyGetForce (body[25])[2]);
// printf("body");
/* run simulation */
dsSimulationLoop (argc,argv,800,600,&fn);
dJointGroupDestroy (contactgroup);
dSpaceDestroy (space);
dWorldDestroy (world);
return 0;
}
=================CODE================
With regards.
Mahfuz.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the ODE
mailing list