problem to scale a body

shibby3d

18-01-2008 13:47:51

Hello,

String param = "static : yes, node-scale: 1.25 1.25 1.25";
aire_centrale = m_scene->createBody("aire_centrale.mesh",new TriangleMeshShape("aire_centrale.mesh", "material: mapMat"), positionTerrain,param);
anneau_1 = m_scene->createBody("petit_anneau.mesh", new TriangleMeshShape("petit_anneau.mesh", "material: mapMat"), positionTerrain,param);


If I don't use the option "node-scale" everything is ok, but when I use it, the body becomes a bit throwable. If I have a sphere on my body, we don't see a sphere but a half sphere. (I am not sure I am understandable...)

betajaen

18-01-2008 14:52:08

Just because the visual side of the body is scaled doesn't mean that NxOgre will take notice or even care about that. You need to scale the shape as well.

shibby3d

18-01-2008 16:50:20

thank you :D