[ODE] getting bodies acceleration

Robert Rose rose at cafwap.net
Fri Oct 17 17:47:03 MST 2003


I'm new to ODE, but doesn't F=ma? :-)  Wouldn't this work:

dBodyGetForce () / mass

?

"Return the current accumulated force ... vector. The returned pointers 
point to an array of 3 dReals. The returned values are pointers to 
internal data structures, so the vectors are only valid until any 
changes are made to the rigid body system."

-robert

On Friday, October 17, 2003, at 04:45  PM, XFred wrote:

> Well that's what I do too, I was just wondering if I could access ODE 
> internals by a simple way.
>
> Thank you anyway.
> -- 
> f.d
>
> On Fri, 17 Oct 2003 14:34:12 -0400
> "Martin C. Martin" <martin at metahuman.org> wrote:
>
>> Subtract the velocity at the last timestep from the velocity now, and
>> divide by the timestep.  I do it all the time, and it works just fine.
>>
>> - Martin
>>
>> XFred wrote:
>>
>>> Hi,
>>> I there a quick way to get bodies acceleration without getting in 
>>> ODE internal structures ?
>>>
>>> thank you.
>>>
>>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode



More information about the ODE mailing list