Class
RemoteTransform2DPlugin
View sourceExtendsPlugin
Adds 2D remote-transform support to an App.
Entities with RemoteTransform2D can follow selected position,
orientation, and scale channels from a referenced 2D entity while applying
their configured offset. A channel is updated only when it is enabled, and
the target is left unchanged when its referenced entity does not provide a
complete 2D transform.
The plugin requires CorePlugin, ReflectPlugin, and
MathPlugin, plus Transform2DPlugin for the source and
target transform components. Register these dependencies before registering
this plugin; dependencies are checked but not installed automatically.
Examples
import { App } from '@wimaengine/app'
import { CorePlugin } from '@wimaengine/core'
import { MathPlugin } from '@wimaengine/math'
import { ReflectPlugin } from '@wimaengine/reflect'
import {
RemoteTransform2DPlugin,
Transform2DPlugin
} from '@wimaengine/transform'
new App()
.registerPlugin(new ReflectPlugin())
.registerPlugin(new CorePlugin())
.registerPlugin(new MathPlugin())
.registerPlugin(new Transform2DPlugin())
.registerPlugin(new RemoteTransform2DPlugin())
.run()Constructor
Methods
register(app: App): void
View sourceEnables 2D remote transforms for an App.
requires(): TypeId[]
View sourceReturns the plugin IDs required for 2D remote-transform support.
The app must already have CorePlugin, ReflectPlugin,
MathPlugin, and Transform2DPlugin registered.
Registering this plugin does not install them automatically.
