Can i use staticgeometry like InfinitePlaneGeometry?

ShUdDeR

22-04-2008 10:27:42

Hi,

i'm doing my first steps with ogreode and i would like to know if can i use staticgeometry as a ground like infiniteplanegeomeetry:

mGround = new OgreOde::InfinitePlaneGeometry(Plane(Ogre::Vector3(0,1,0),0), mWorld, mWorld->getDefaultSpace());

or i have to use some kind of queryray to have meshes over it.
Sorry for my english.
Thanks a lot!!

rewb0rn

22-04-2008 13:30:23

yes that would be no problem

ShUdDeR

22-04-2008 15:24:26

But how can i use a mesh as a ground. I have my terrain modeled and i would like to define it as a ground. Wich function have i to use?? thxx

rewb0rn

22-04-2008 17:00:56

create a trimesh geometry, there is an example in the samplescenes demo.

ShUdDeR

22-04-2008 21:54:45

thankss it works!! :D