[ODE] Stopping a body

Charlie Hui charred at gmail.com
Mon Mar 14 15:19:20 MST 2005


Sounds like gravity to me. Do you have something for the ground or did
you turn gravity off?

--Charlie Hui 


On Mon, 14 Mar 2005 10:32:07 -0300, Gabriel <mystml at adinet.com.uy> wrote:
> I'm (still!) in a seemingly endless quest to have a drivable arcade-like
> car. This time, however, I'm pretty close to achieving it.
> 
> What I'm doing now involves setting the linear velocity of several
> bodies manually. The car has spheres for the wheels and a number of
> boxes for the chassis. Wheel bodies and the chassis body is connected by
> hinge2 joints.
> 
> Now, my problem is that before every simulation step I'm calling
> dBodySetLinearVel(pBody, 0, 0, 0) on all the car bodies, but it still
> moves. Quite slowly, but it moves, as falling in slow motion.
> 
> I wonder why. Is an accuracy problem, or as I hope, the effect of
> applying gravity to the bodies and taking a tiny step, not letting the
> gravity really accelerate the car because I reset the linear velocity?
> 
> Thanks!
>         --Gabriel
> 
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>


More information about the ODE mailing list