updateWorldVectors parameter

Hello people.



I have found something in Spatial.updateWorldVectors:



    /**

    * If not locked, updates worldscale, worldrotation and worldtranslation

    *

    * @param recurse

    *            usually false when updating the tree. Set to true when you

    *            just want to update the world transforms for a branch without

    *            updating geometric state.

    */

    public void updateWorldVectors(boolean recurse) {

        if (((lockedMode & Spatial.LOCKED_TRANSFORMS) == 0)) {

            updateWorldScale();

            updateWorldRotation();

            updateWorldTranslation();

        }

    }



The parameter "recurse" is never used, although the method is called from several places with different values.



I am also wondering what's the correct way to reflect local coordinate changes, if we are going to immediately need those changed applied… it is my understanding that I would need to apply updateWorldVectors down into the scene graph and then apply updateModelBounds back from all affected branches to the root… how would I do this?



Thank you!

See Node.updateWorldVectors for where it is used.



You don't need to call updateModelBounds unless the vertices themselves have changed (which is not the case if you are just changing scale/rotation/translation.

:slight_smile: I knew there had to be an explanation :).



Thanks!