Class RealTimeVisualizer3D

3D real-time visualizer using Three.js.

Implements

  • Visualizer

Constructors

Properties

animationId: null | number = null
clear: (() => void) = ...

Clear the visualization.

Type declaration

    • (): void
    • Returns void

gui?: GUI
scene?: Scene
simulation: Simulation
stats?: Stats
universeTrails: ThreeUniverseTrail[] = []

Methods

  • Adds default controls to the visualization.

    Parameters

    • parentElement: HTMLElement

      parent element to place the controller div in.

    Returns void

  • Clear all trails in the visualization.

    Parameters

    • Optional i: number

      index of the universe to clear trails for.

    Returns void

  • Simulate and play the visualization

    Parameters

    • divId: string

      div id to render the visualization in

    • width: number

      width of the visualization.

    • height: number

      height of the visualization.

    Returns void

Generated using TypeDoc