Pawn.createSolidCube() method

Create a solid cube in given color.

Signature:

createSolidCube(color?: number[]): void;

Parameters

ParameterDescription
colorA RGB color, e.g., [1.0, 1.0, 1.0]. It is [0.5, 0.5, 0.5] by default.

Returns:

void

Remarks

The behaviour is undefined this function is called for a pawn which already has geometry.