Abstract Wormhole2D
open fun <T : ViewPort?> AbstractWormhole2D(@Nonnull environment: Environment<out Any, P>, @Nonnull view: T, @Nonnull viewTypeToPointAdapter: (T) -> PointAdapter<P>)
Content copied to clipboard
Wormhole constructor for any ViewPort. Initializes a new instance directly setting the size of both view and environment, and the offset too.
Parameters
<T>
the type of the viewType
environment
the Environment
view
the ViewPort of the UI used for implementing the wormhole.
view Type To Point Adapter
a Function used to create the initial position of the wormhole.