RemoteTransform3DPlugin

View source

ExtendsPlugin

Adds 3D remote-transform support to an App.

Entities with RemoteTransform3D can follow selected position, orientation, and scale channels from a referenced 3D 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 3D transform.

The plugin requires CorePlugin, ReflectPlugin, and MathPlugin, plus Transform3DPlugin 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 {
  RemoteTransform3DPlugin,
  Transform3DPlugin
} from '@wimaengine/transform'

new App()
  .registerPlugin(new ReflectPlugin())
  .registerPlugin(new CorePlugin())
  .registerPlugin(new MathPlugin())
  .registerPlugin(new Transform3DPlugin())
  .registerPlugin(new RemoteTransform3DPlugin())
  .run()

Constructor


constructor()

Methods


register(app: App): void

View source

Enables 3D remote transforms for an App.

Parameters

NameDescriptionDefault
app

App to configure.

—