[ODE] ode calculations

Gautam . gautam_n_ at hotmail.com
Wed Jan 1 20:08:02 2003


Hi,

Thanks for the replies. I got ODE test examples working after compiling with 
the resource files.

I was working with ODE and am trying to figure out ODE, so please excuse my 
simple questions.

I am trying to use ODE with my program. As a trial I am trying to use force 
on a point that is the following :-

    GLfloat v[3] = {0, 0, -50};
    glBegin(GL_POINTS);
        glVertex3fv(v);
    glEnd();

For adding force I put this code in my Init program.
   dBodyAddForce(body, 0.3, 0.4, 0);

Now I am confused as to how to add this force to the point. I can get the 
force values using const dReal *force = dBodyGetForce(body);. But how would 
I go about applying it ?

Thank you,

Gautam

Check my site at http://www.geocities.com/gautamn2000




_________________________________________________________________
The new MSN 8 is here: Try it free* for 2 months 
http://join.msn.com/?page=dept/dialup