Movable3DPlugin

View source

ExtendsPlugin

Adds 3D movable component support to an App.

Register this plugin when an app uses Velocity3D, Rotation3D, Acceleration3D, or Torque3D. It makes these components available for use on app entities.

The plugin requires CorePlugin, ReflectPlugin, and MathPlugin. Registering this plugin does not install missing dependencies automatically. Use Movable2DPlugin when an app needs the corresponding 2D components.

Examples

import { App } from '@wimaengine/app'
import { CorePlugin } from '@wimaengine/core'
import { MathPlugin } from '@wimaengine/math'
import { Movable3DPlugin } from '@wimaengine/movable'
import { ReflectPlugin } from '@wimaengine/reflect'

new App()
  .registerPlugin(new ReflectPlugin())
  .registerPlugin(new CorePlugin())
  .registerPlugin(new MathPlugin())
  .registerPlugin(new Movable3DPlugin())
  .run()

Constructor


constructor()

Methods


register(app: App): void

View source

Enables 3D movable components for an app.

Parameters

NameDescriptionDefault
app

App to configure.

—