mattm
29-05-2007 15:44:11
Hi!
The subject is in the title!
I have an entity. I would like to change the color of its material.
I 've tried to create a SubNode, where to attach this material, because my entity doesn't have a "getMaterial()" method:
The problem is that the setDiffuse method doesn't exist either in subEntity....
The subject is in the title!
I have an entity. I would like to change the color of its material.
I 've tried to create a SubNode, where to attach this material, because my entity doesn't have a "getMaterial()" method:
SubEntity subEntity_;
subEntity_=entity_.GetSubEntity(0);
subEntity_.getMaterial().setDiffuse(0.2f, 0.4f, 0.1f);The problem is that the setDiffuse method doesn't exist either in subEntity....