Interface IEngineConfig

Engine Config

interface IEngineConfig {
    audio: boolean;
    autoClear: null | number;
    bgColor: string | number;
    bgOpacity: number;
    camera: ICamera;
    dice: Partial<IDiceConfig>;
    drawDebug?: {
        infoPane: boolean;
        clearColor: boolean;
        collisionMeshes: boolean;
    };
    light: ILight;
    physics: IPhysics;
    persistRolls?: boolean;
}

Properties

audio: boolean

Audio enabled (default: true)

autoClear: null | number

Seconds to wait before auto clearing roll. Null means do not auto clear

bgColor: string | number

Canvas Background Color

bgOpacity: number

Canvas Background Opacity

camera: ICamera

Camera Configuration

dice: Partial<IDiceConfig>

Dice Configuration

drawDebug?: {
    infoPane: boolean;
    clearColor: boolean;
    collisionMeshes: boolean;
}

Debug

Type declaration

  • infoPane: boolean
  • clearColor: boolean
  • collisionMeshes: boolean
light: ILight

Light Configuration

physics: IPhysics

Physics Configuration

persistRolls?: boolean

Persist Rolls

Generated using TypeDoc