What I would suggest is using the terrain following algorithm for every corner/every wheel of the Tank...well...at least 3 points need to be measuerred. after that you can more or less easily calculate pitch and roll of the tank as a whole unit.

Best regards,
Markus.

Am 25.04.2005 um 11:58 schrieb Tristan McMillan:

Hi OSG-Community

I'm trying to make a tank follow the terrain. I have had a look at the
NPS tutorial which uses the intersectVisitor method to find the height
on the terrain.

However I need to get the tank to pitch and roll according to the
terrain, and I'm not sure how to go about doing this.

Does anyone have any ideas?

Regards
Tristan

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/



--

Dipl.-Inform. Markus Stöbe
Gruppenleiter "Simulatoren"

Deutsches Zentrum für Luft- und Raumfahrt e.V.
in der Helmholtz-Gemeinschaft
Institut für Verkehrsführung und Fahrzeugsteuerung
Lilienthalplatz 7
38108 Braunschweig

http://www.dlr.de/fs



_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to