Setting Color of model

Hi all,

how would I go about setting the color of a model? because there is no setColor() or setSolidColor() in Model. Any ideas??

well, you could grab the children of your model and cast them each to Geometry and call setColor and setSolidColor on that.

i didn’t know that Model was a node! ://

i did this, just for future purposes:

Geometry child = (Geometry)ship.getChild(0);

child.setSolidColor(new ColorRGBA(1, 0, 0, 1));