[ODE] Pushing a Body

Eric Trousset eTrousset at wanyrobotics.com
Mon May 5 02:23:01 2003


This is a multi-part message in MIME format.

------_=_NextPart_001_01C312E8.0D1B5F1D
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I think you should try to apply an impulse.=20
the diference between a force and an impulse is that the farce has to be =
integreted for some amount of time before it has a visible effect
on the body, whereas and impulse acts as a huge force that is appied on =
the body for a very small amount of time but gives it a lot of
velocity.
=20
Eric

-----Message d'origine-----
De : Nathan Ostgard [mailto:nostgard@lvcm.com]
Envoy=E9 : lundi 5 mai 2003 11:09
=C0 : ode@q12.org
Objet : [ODE] Pushing a Body


Hello,
=20
    I've been wanting to try to integrate ODE into an engine for a =
while, and just started messing around with it tonight. All of the =
collision and response is working great, but I can't seem to figure out =
one thing - how can I apply force to a body in the world to "push" it in =
a direction? I've gone through the mailing list and tried a million and =
one different ways, but I can't seem to get the object to move.
=20
    Specifically, I have a box object which is already at rest in the =
world and I just want to push it up into the air (i.e., throw it).
=20
    dBodyAddForce seems to have some (but VERY little) effect on the =
body when it is in the air (it just bounces a little more when it =
lands), but once it's landed on my ground plane, it has no visible =
effect on the body whatsoever.
=20
    Any ideas?
=20
    Thanks,
=20
Nathan Ostgard
nostgard@lvcm.com
=20


------_=_NextPart_001_01C312E8.0D1B5F1D
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D237462009-05052003><FONT face=3DArial color=3D#0000ff =
size=3D2>I=20
think you should try to apply an impulse. </FONT></SPAN></DIV>
<DIV><SPAN class=3D237462009-05052003><FONT face=3DArial color=3D#0000ff =
size=3D2>the=20
diference between a force and an impulse is that the farce has to be =
integreted=20
for some amount of time before it has a visible =
effect</FONT></SPAN></DIV>
<DIV><SPAN class=3D237462009-05052003><FONT face=3DArial color=3D#0000ff =
size=3D2>on the=20
body, whereas and impulse acts as a huge force that is appied on the =
body for a=20
very small amount of time but gives it a lot of</FONT></SPAN></DIV>
<DIV><SPAN class=3D237462009-05052003><FONT face=3DArial color=3D#0000ff =

size=3D2>velocity.</FONT></SPAN></DIV>
<DIV><SPAN class=3D237462009-05052003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D237462009-05052003><FONT face=3DArial color=3D#0000ff =

size=3D2>Eric</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Message d'origine-----<BR><B>De&nbsp;:</B> Nathan =
Ostgard=20
  [mailto:nostgard@lvcm.com]<BR><B>Envoy=E9&nbsp;:</B> lundi 5 mai 2003=20
  11:09<BR><B>=C0&nbsp;:</B> ode@q12.org<BR><B>Objet&nbsp;:</B> [ODE] =
Pushing a=20
  Body<BR><BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I've been wanting =
to try to=20
  integrate ODE into an engine for a while, and just started messing =
around with=20
  it tonight. All of the collision and response is working great, but I =
can't=20
  seem to figure out one thing&nbsp;- how can I apply force to a body in =
the=20
  world to "push" it in a direction? I've gone through the mailing list =
and=20
  tried a million and one different ways, but I can't seem to get the =
object to=20
  move.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; Specifically, I =
have a box=20
  object which is already at rest in the world and I just want to push =
it up=20
  into the air (i.e., throw it).</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; dBodyAddForce =
seems to have=20
  some (but VERY little) effect on the body when it is in the air (it =
just=20
  bounces a little more when it lands), but once it's landed on my =
ground plane,=20
  it has no visible effect on the body whatsoever.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; Any =
ideas?</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; =
Thanks,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Nathan Ostgard</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2><A=20
  href=3D"mailto:nostgard@lvcm.com">nostgard@lvcm.com</A></FONT></DIV>
  <DIV><FONT face=3DArial =
size=3D2></FONT>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C312E8.0D1B5F1D--