[ODE] These weird numbers make me crazy

Adam D. Moss aspirin at ntlworld.com
Sat Feb 8 11:57:01 2003


Marco Bancale wrote:
> I'm getting crazy... I make this:
> 
> dBodySetLinearVel(body, 2, 2, 0);
> dWorldStep(...);
> dBodyGetLinearVel(body);
> 
> and the result is (463728574628.46837, -473828298.0, 0)
> It's just an example. Actually the result is random.

Sounds like a float/double mismatch.  Are you correctly dereferencing
the array returned by dBodyGetLinearVel as dReal?  Is your
application definitely using the same dReal type as ODE was compiled
for?  (check which ode.h you're using!)

--Adam
-- 
Adam D. Moss   . ,,^^   adam@gimp.org   http://www.foxbox.org/   co:3
busting makes me feel good
'"Wankbadger" failed to reach MPs.  "Wank-badger" succeeded.'