IIRC, you use the surface normal of the terrain to create a rotation
quaternion (easiest) or matrix (bit more involved) and apply it to the
object.
HTH,
Oliver
Tristan McMillan wrote:
Hi OSG Community
I've been working with the NPS tutorial for the tank being situated at
the height of the terrain.
I've adapted this code to allow the tank to move and follow the terrain
for a certain change in the tanks position. However, I can't seem to get
the tank to roll and pitch according to the terrain profile.
Has anyone accomplished this or does anyone know how to do this?
thanks
Tristan
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
--
Oliver
skype: schoenborno
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/