rafa.gdev
29-05-2008 06:03:09
Hello, I read in a previous post an answer of Betajen to a similar issue: "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."
(http://89.151.96.106/phpBB2addons/viewt ... 6f4e2718c6)
I have the inverse problem: my visual representatoin isn't updated. Here's my code:
boxShape = new Cube(1, 10, 1, "mesh-scale: 1 10 1");
Body* box = mScene->createBody("cube.1m.mesh", boxShape, position, "static: yes, node-scale: 1 10 1" );
I thought that adding the "mesh-scale" parameter would solve the problem but it didn't, the box visual representation isn't scaled. Can someone help me? Thank you very much!
(http://89.151.96.106/phpBB2addons/viewt ... 6f4e2718c6)
I have the inverse problem: my visual representatoin isn't updated. Here's my code:
boxShape = new Cube(1, 10, 1, "mesh-scale: 1 10 1");
Body* box = mScene->createBody("cube.1m.mesh", boxShape, position, "static: yes, node-scale: 1 10 1" );
I thought that adding the "mesh-scale" parameter would solve the problem but it didn't, the box visual representation isn't scaled. Can someone help me? Thank you very much!