function set(string id, string definition, int color)doesn't return a value | IdArguments:
- "id" - can be
"1p_STYLENAME": affects a single-Part creature (without Joints)
"p_STYLENAME": affects all normal Parts
"j_STYLENAME": affects Joints
(STYLENAME corresponds to the Model.Vstyle value, and it can be empty).
- "definition" is a genotype describing the object shape
- "color" can be 0xRRGGBB or one of the special values: -3 = default creature color, -4 = default food color, -5 = default manipulator color
Examples:
WireframeAppearance.set("j_predator","X",0xff0000);//make all predators (i.e. creatures with Vstyle=predator) red
WireframeAppearance.set("1p_food","...some...genotype...",-4);//change food appearance
WireframeAppearance.set("p_","//0\np:0,0,0\np:-0.1,0,0\np:0.1,0,0\np:0,-0.1,0\np:0,0.1,0\np:0,0,-0.1\np:0,0,0.1\nj:0,1\nj:0,2\nj:0,3\nj:0,4\nj:0,5\nj:0,6\n",0);//make Parts' orientation axes visible |