A view is a super set of a scene. In order to prevent interactions between post-processes and the GUI, we actually need to use multiple scenes (layers), hence the concept of a view that is composed of multiple scenes.

Implements

Constructors

Properties

onTargetSetObservable: Observable<StarSystemCoordinates> = ...
scene: Scene
GENERATION_RATE: 100
RENDER_RADIUS: 6

Methods

  • Remove user input to ensure the player does not interact with the view when another view is displayed

    Returns void

  • Parameters

    • skipAnimation: boolean = false

    Returns void

  • Returns the bottom layer scene of the view. This is useful for taking a screenshot of the view for example as we can only use one camera at a time.

    Returns Scene

  • Renders the view. It is composed of multiple scene layers: a main scene (bottom layer) and other scenes to handle the UI for example.

    Returns void

  • Parameters

    • camera: Camera

    Returns void