how to scale nxshaper?

titanhope

20-10-2009 09:00:15

in class init i can scale shape box like this:
m_pShape = new NxOgre::Box(rsize.x*sx,rsize.y*sy,rsize.z*sz);

but how to scale :

m_pShape = new NxOgre::Convex(pMesh);
m_pShape = new NxOgre::TriangleGeometry(pMesh);

and in game how to scale NxOgre::Box in update.

betajaen

20-10-2009 10:52:31

You can only rescale a mesh, by getting a copy of the vertices and indices (via MeshData), performing the scaling operation yourself then cooking the mesh again.

The process is a little slow, and should never be done ingame - unless absolutely necessary.

checkit

17-11-2009 18:40:39

what a pity~ :cry: