draw Ground
fun drawGround(engine: Engine, position: Float3 = Float3(-0f, -3f, -5.5f), size: Float3 = Float3(200f, 200f, 0.1f), orientation: Quaternion = Quaternion(0f, 0f, 50f, 360f), rotationPos: Float3 = Float3(0f, 0f, 0f), materialLoader: MaterialLoader?, groundColor: Color = Color(0.902f, 0.902f, 0.902f, 1.0f)): Node
This function is used to draw the ground in the scene using the SceneView library and the Filament engine
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
rotation Pos
: the rotation of the ground