Class
Movable3DPlugin
View sourceExtendsPlugin
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
Methods
register(app: App): void
View sourceEnables 3D movable components for an app.
requires(): TypeId[]
View sourceReturns the plugin IDs required for 3D movable component support.
The app must already have CorePlugin, ReflectPlugin,
and MathPlugin registered. Registering this plugin does not
install them automatically.
