draw MTK
fun drawMTK(engine: Engine, materialLoader: MaterialLoader?, groundColor: Color = Color(0.902f, 0.902f, 0.902f, 1.0f), wallColor: Color = Color(0.561f, 0.561f, 0.561f, 1.0f), spaceColor: Color = Color(0.612f, 0.153f, 0.69f, 1.0f), onNodeSelected: (Position2) -> Unit): Node
This function is used to draw a Machinestalk plan in the scene using the SceneView library and the Filament engine
Return
a node representing the Machinestalk plan
Parameters
engine
: the engine used to render the scene
material Loader
: the material loader used to load the material of the walls
ground Color
: the color of the ground
wall Color
: the color of the walls
space Color
: the color of the space