Small World Engine API Reference - v0.46.1
    Preparing search index...

    Class SmallWorldAbstract

    Base class for applications built with the SmallWorld engine.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    camera: Camera

    The main camera.

    canvas: HTMLCanvasElement

    The canvas element.

    The engine configuration.

    debug: boolean = false

    Whether debug visualization is enabled.

    interactionManager: InteractionManager

    The interaction manager for gamification / picking.

    renderer: Renderer

    The active renderer.

    scene: Scene

    The current scene.

    Methods

    • Called once after the GadgetInspector is created. Override in subclasses to register scene-specific inspector controls.

      Parameters

      Returns void

    • Called to setup the scene after the engine is initialized.

      Returns Promise<void>

    • Initializes and starts the application loop.

      Returns Promise<void>

    • Called every frame to update application logic.

      Parameters

      • deltaTime: number

        Time elapsed since the last frame in seconds.

      Returns void