Resizing Objects

hi there… I would like to ask something about resizing objects… because in my project… when I try to resize a simple jme Box… I would detach the old object and replace it with the same name but a new resized jme box… I would like to dynamically resize the object instead of detaching and replacing it… LocalScale does not help me since it resizes the whole box instead of just the length or just the width… please help me with this… thanks in advance

As far as I know setLocalScale works with changing the scale differently on different axes.

Just use the constructor that takes a Vector3f as argument:


new Box().setLocalScale(new Vector3f(1f, 0.2f, 5f));


This sets the scale on the x axis to 1, on the y axis to 0.2 and on the z axis to 5.