[ODE] Position handling..

Michael Scharvogel thubba at gmx.net
Thu Dec 5 05:58:02 2002


This is a multi-part message in MIME format.

------=_NextPart_000_0028_01C29C66.3187B610
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

hi folks...

thank you for your help....

and sorry for another stupid question (hope I won't get ignored =
sometime...)

(apart from some more problems:-) I just wanted my viewport to =
accompaign my robot. Thus I got a geometries position and set the =
vieports xyz pos to the bodies pos (just for the moment to give it a =
try). It worked fine just until my robot started to move (by hinge =
movement). As the getPosition method returns a const value, the position =
doesn't update. Then I tried something like

 dVector3 camPos;
 dBodyGetRelPointPos(myBodyID, 0, 0, 0, camPos);

and set the Viewport to this position. Nothing changed as this point =
also seems to stay the same. the adjustment of the camera pos works, as =
I am not able to move the camera by mouse movement.=20

So how do I get the current Position of a Body.

thanx for your help (and patience)...

cya&bfn, mike.

------=_NextPart_000_0028_01C29C66.3187B610
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.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>hi folks...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>thank you for your =
help....</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>and sorry for another stupid question =
(hope I won't=20
get ignored sometime...)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>(apart from some more problems:-) I =
just wanted my=20
viewport to accompaign my robot. Thus I got a geometries position and =
set the=20
vieports xyz pos to the bodies pos (just for the moment to give it a =
try). It=20
worked fine just until my robot started to move (by hinge movement). As =
the=20
getPosition method returns a const value, the position doesn't update. =
Then I=20
tried something like</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;dVector3=20
camPos;<BR>&nbsp;dBodyGetRelPointPos(myBodyID, 0, 0, 0, =
camPos);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>and set the Viewport to this position. =
Nothing=20
changed as this point also seems to stay the same. the adjustment of the =
camera=20
pos works, as I am not able to move the camera by mouse movement. =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>So how do I get the current Position of =
a=20
Body.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>thanx for your help (and =
patience)...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>cya&amp;bfn, =
mike.</FONT></DIV></BODY></HTML>

------=_NextPart_000_0028_01C29C66.3187B610--