Others commands exist that allow the user to describe more complex scenes.
When they are created, the default color of the obstacles is blue, and the default color of the robots is yellow. But we can use other colors to make the scene more realistic.
The function void p3d_set_obst_color(char *name, int color) with the name obst and the code number of the color color as input sets the color of all the polyhedrons of the obstacle obst to color. The function void p3d_set_obst_poly_color(char *name,int num, int color) does exactly the same for the ith polyhedron of the obstacle obst.
The functions void p3d_set_body_color(char *name, int color) and void p3d _set_body_poly_color(char *name, int num, int color) do exactly the same.
Changing a color can only be done when the description of the obstacle or the description of the robot (for the bodies) have been completed.
The colors available in Move3D are White, Black, Blue, Red, Yellow, Green, Grey and Brown.