Create a solid cube in given color.
Signature:
createSolidCube(color?: number[]): void;
Parameter | Description |
---|---|
color | A RGB color, e.g., [1.0, 1.0, 1.0]. It is [0.5, 0.5, 0.5] by default. |
Returns:
void
The behaviour is undefined this function is called for a pawn which already has geometry.