drawGround

fun drawGround(engine: Engine, position: Float3 = DEFAULT_PLANE_POSITION, size: Float3 = DEFAULT_PLANE_SIZE, orientation: Quaternion = DEFAULT_PLANE_ORIENTATION, rotationPos: Float3 = DEFAULT_PLANE_ROTATION, materialLoader: MaterialLoader?, groundColor: Color = DEFAULT_GROUND_COLOR_LIGHT): Node

Draw the ground in the scene using the SceneView library and the Filament engine that returns a CubeNode representing the ground

Return

a CubeNode representing the ground

Parameters

engine

the engine used to render the scene

position

the position of the ground

size

the size of the ground

orientation

the orientation of the ground

rotationPos

the rotation of the ground

materialLoader

the material loader used to load the material color of the ground

Throws

if the size of the ground is not valid

if the material loader is null