[ODE] camera flight

Michael Scharvogel thubba at gmx.net
Mon Dec 9 08:31:01 2002


This is a multi-part message in MIME format.

------=_NextPart_000_0017_01C29FA0.3CF295F0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

hi

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.
Or can anyone support me with an alternative way to achive this camera =
flight ???

thanx for your help (and patience)...

cya&bfn, mike.

------=_NextPart_000_0017_01C29FA0.3CF295F0
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</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I just wanted my viewport to accompaign =
my robot.=20
Thus I got a geometries position and set the vieports xyz pos to the =
bodies pos=20
(just for the moment to give it a try). It worked fine just until my =
robot=20
started to move (by hinge movement). As the getPosition method returns a =
const=20
value, the position doesn't update. Then I tried something like</FONT>
<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>Or can anyone support me with an =
alternative way to=20
achive this camera flight ???</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></DIV></BODY></HTML>

------=_NextPart_000_0017_01C29FA0.3CF295F0--