Abstract Wormhole2D
constructor(environment: Environment<out Any, P>, view: T, viewTypeToPointAdapter: (T) -> PointAdapter<P>)
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.