Skip to main content

WorldManager

class WorldManager {
raycaster: RaycasterManager;

setInteriorModeEnabled(enabled: boolean): void;

setHemisphereLightColor(color: ColorType): void;

setHemisphereLightGroundColor(color: ColorType): void;

setHemisphereLightIntensity(intensity: number): void;

setGlobalLightColor(color: ColorType): void;

setGlobalLightIntensity(intensity: number): void;

setGlobalLightAzimuth(azimuth: number): void;

setTime(seconds: number): void;

getTime(): Promise<number>;

setTimeRepresentation(hour: number, minute?: number, second?: number): void;

setTimeMode(timeMode: TimeMode): void;

setTimeCycleDuration(timeCycleDuration: number): void;

setTimezone(timezone: Timezone): void;

setWeather(weather: WeatherType): void;

setFogEnabled(enabled: boolean): void;

setFogColor(color: ColorType): void;

setFogDensity(density: number): void;

setSkybox(skybox: SkyboxProps | string | null): void;

setMoonPhase(phase: MoonPhases): void;

setSkyManualModeEnabled(enabled: boolean): void;

setViewportRender(type: ViewportRender): void;

createProximityAction(
options?: ProximityActionOptions,
withId?: string,
): ProximityActionManager;

createPlayerProximityAction(
player: string | PlayerManager,
options?: ProximityActionOptions,
withId?: string,
): ProximityActionManager;

createObjectProximityAction(
object: string | ObjectManager,
options?: ProximityActionOptions,
withId?: string,
): ProximityActionManager;
}