How to set height of water surface

Thrakbad

12-11-2009 14:10:17

I'm trying to change the world coordinates of the ocean surface. I figured this could be done be simply changing the definition of the Projected grid base plane, but that leads to strange results. Nevermind the boat, it doesn't matter for that problem :wink:

This is my scene with the base plane defined as
Ogre::Plane plane = Ogre::Plane(Ogre::Vector3::UNIT_Y, 0.0);


And this is my scene with the base plane defined as
Ogre::Plane plane = Ogre::Plane(Ogre::Vector3::UNIT_Y,70.0);


Seems like it is a little more complicated getting the water surface to be at a height of 70 on the y-Axis? What am I doing wrong?

Xavyiy

12-11-2009 15:03:28

Just use Hydrax::setPosition(Ogre::Vector3(0,70,0)) :)

Thrakbad

12-11-2009 17:31:25

I knew there had to be an easy solution...I lokked throught the API for setHeight or something and just didn't think of position :roll: Thanks