netsurferj
12-08-2008 19:42:20
Hi
I am trying to use cloth as water, as the following code had no effect:
and I would like to know how to scale the cloth.
My current code is:
I am using NxOgre 0.9
I am trying to use cloth as water, as the following code had no effect:
NxOgre::FluidParams fluidParams;
fluidParams.setToDefault();
NxOgre::Fluid * fluid = mScene->createFluid(Vector3(6716,10,5707),fluidParams);
fluid->createFluidMesh(cam);
and I would like to know how to scale the cloth.
My current code is:
NxOgre::ClothParams clothParams;
clothParams.setToDefault();
clothParams.meshMaterial = "water";
clothParams.width = scale.z;
clothParams.height = scale.x;
NxOgre::Cloth * theCloth = mScene->createCloth("name","theWater.mesh",position,clothParams);
I am using NxOgre 0.9