You could intersect the terrain using
osgUtil::LineSegmentIntersection/IntersectionVisitor.  Use three/four
intersections or just pick out the normal of the polygon from one
intersection.

On 5/22/07, HEMANTH <[EMAIL PROTECTED]> wrote:

Hi,

        I want to simulate a vehicle on a terrain in OSG.but I am not able
figure out how to simualte the pitch,yaw and roll of the vehicle according
to the height of the terrain at a particular point.I mean the robot
orientation should be changed according to the height of the terrain.

        Is there any way of doing this ?

--
*************************************************************
K.HEMANTH
COMPUTER SCIENCE AND ENGINEERING(DUAL DEGREE)
ROLL.NO# 200402017
ROOM.NO# 399(OBH)
CONTACT NO# 9849229262
IIIT--HYDERABAD.

EMAIL:
        [EMAIL PROTECTED]
        [EMAIL PROTECTED]
        [EMAIL PROTECTED]
**************************************************************

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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

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

Reply via email to