The right way to rotate a object

@proteo1903 said:
But the reference to the spatial not be lost

[java]
Spatial obj =assetmanager.loadModel(.....
rootNode.attachChild(obj);
obj.removeFromParent();
[/java]

obj mantain a reference to the spatial, the GC should no free this.


But the child list is rebuilt... causing GC.