WanaPlan

API Docs for: 2.7.0
Show:

BaseComponent3D

Module: Component
Parent Module: Wanaplan

Summary

Base class for 3D components.

Constructor

BaseComponent3D

Syntax

BaseComponent3D

(
  • core
  • name
)

Summary

Parameters:

  • core wnp.Core

    Instance of the Core.

  • name String

    Name of the component.

Methods

compute

Syntax

compute

() private

Summary

Recompute of the component.

destroy

Syntax

destroy

()

Summary

Destructor.

disable

Syntax

disable

()

Summary

Disables the component

enable

Syntax

enable

()

Summary

Enables the component

getFloor

Syntax

getFloor

(
  • [structure]
)
BABYLON.Mesh

Summary

Gets the 3D mesh of the floor structure in parameter (by default current floor).

Parameters:

Returns:

BABYLON.Mesh:

The floor mesh in 3D.

initialize

Syntax

initialize

()

Summary

Method called when Wanaplan is initialized. You don't need to call this method manually.

onContextChanged

Syntax

onContextChanged

(
  • context
)

Summary

Method called when the context is switched (2D -> 3D or 3D -> 2D)

Parameters:

  • context String

    The new context

startListening

Syntax

startListening

()

Summary

Calls all the event listeners.

stopListening

Syntax

stopListening

()

Summary

Removes all the event listeners.

update

Syntax

update

(
  • deltaTime
)

Summary

Updates the dynamic part of the component.

Parameters:

  • deltaTime Number

    The time interval.

Properties

keyboardManager

Syntax

keyboardManager

wnp.KeyboardManager

Summary

Instance of the Keyboard Manager (shortcut to wanaplan.keyboardManager).

name

Syntax

name

String

Summary

Name of the component.

structure

Syntax

structure

wnp.Structure

Summary

Instance of the structure (shortcut to wanaplan.structure).