[ODE] Removing forces from a body
Vast
vasko.tim at gmail.com
Fri Nov 4 20:50:38 MST 2005
Also, forgot to mention... check that you generate enough contact points for
your objects, thats usually the #1 source of problems like yours.
On 11/3/05, *Vast *<vasko.tim at gmail.com> wrote:
>
> "the object falls at a very fast rate, and begins to rotate and move in
> odd directions" - sounds like your simulation is exploding. Are you getting
> any errors along side with those effects? I mean like ODE errors. Also are
> you completely sure you are doing everything right when you select and
> release an object? I dont know enough details about your simulation so the
> answer is vague, but what you have there sounds like your simulation is
> exploding. That happens some times, check that the masses of objects are at
> reasonable state, the gravity is not too high, and try to look through the
> lists, thing like this happen more often then one may think (I suggested the
> things above because they were once a cause of similar problems in my
> simulation, so dont flame me if in your opinion they dont make sense).
>
Hope you solve your problem.
Tim
On 11/3/05, Brad Hittle <bhittle at osc.edu> wrote:
>
> Hi Everyone,
>
> We have a virtual environment, in which we add cylinders, spheres, and
> boxes. What we would like to do is select these with our 'wand', move
> the object to another position and drop it, or build up a force to throw
> it somewhere. What I have been doing is disabling a body when the user
> selects it, and can then move the object around in the scene.
>
> The problem occurs when they let go of the object. It acts like it has a
> multitude of forces that it hasn't reacted with and it starts to react
> then.
>
> For example, if an object is laying on the ground, you would pick it up
> and drop it and see it fall at an accelerated rate. What is actually
> happening in my current setup is that the object falls at a very fast
> rate, and begins to rotate and move in odd directions.
>
> So my question is, is there any way to nullify all the forces on a body,
> so that when the user drops or throws the item, the forces acting upon
> the object will only be gravity and or a force I calculate and apply to
> the object?
>
> I have tried removing the force, linear velocity, angular velocity, and
> torque by adding a force in the opposite direction of equal strength,
> but this doesn't work. Also, I didn't find anything on the faqs on
> the topic of removing forces from a body, although I could have not
> seen/overlooked the topic.
>
> Thanks alot for the help!
>
> -brad
>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://q12.org/pipermail/ode/attachments/20051104/4279be96/attachment-0001.htm
More information about the ODE
mailing list