[ODE] Pushing a Body

Nathan Ostgard nostgard at lvcm.com
Mon May 5 02:11:02 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0017_01C312AB.51A45E60
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

    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.

    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).

    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.

    Any ideas?

    Thanks,

Nathan Ostgard
nostgard@lvcm.com

------=_NextPart_000_0017_01C312AB.51A45E60
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=3DContent-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><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 seem=20
to figure out one thing&nbsp;- how can I apply force to a body in the =
world to=20
"push" it in a direction? I've gone through the mailing list and tried a =
million=20
and one different ways, but I can't seem to get the object to =
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 into=20
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 some=20
(but VERY little) effect on the body when it is in the air (it just =
bounces a=20
little more when it lands), but once it's landed on my ground plane, it =
has no=20
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></BODY></HTML>

------=_NextPart_000_0017_01C312AB.51A45E60--