Shrinking ninja

Hey,



I imported the Ogre ninja from jme repo to my scene, but its much to big for my purpose.



I am trying to scale it  to 0.001, but this does not work. I see no differences for scaling small scaling values like less than 0.01 and more than 0.00001.



I have tried it this way:




ninjaNode.setlocalScale(0.00001);
ninjaNode.updateModelBounds(0.00001);



Is there anything else needed to propagate the scale inside my scene?

Thanks in advance,
Patrick

Using only setLocalScale should work, can you post your whole code?


My code is to complex for post, because the scene graph construction is spread over many classes.  But your are right, its working now. The scale i wanted set, was overwritten later in another part of the project .

Anyway thanks for your advice and patience with jme-unexpected users,
Patrik


maybe try making it a float?  "f" at the end.

ninjaNode.setlocalScale(0.00001f);

Try

ninjaNode.updateGeometricState(0, true)

after scale.

Uh, thanks people, its already working for him :smiley:

norman is right, its working,



problems occurred due to a  overwritten variable in my code



Thanks

Patrik