drawMTK

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

materialLoader

: the material loader used to load the material of the walls

groundColor

: the color of the ground

wallColor

: the color of the walls

spaceColor

: the color of the space