draw Wall
fun drawWall(engine: Engine, position: Float3 = Float3(0f, 0f, 0f), size: Float3 = Float3(1f, 1f, 1f), orientation: Quaternion = Quaternion(0f, 0f, 0f, 90f), rotationPos: Float3 = Float3(0f, 0f, 0f), materialLoader: MaterialLoader? = null, wallColor: Color = Color(0.561f, 0.561f, 0.561f, 1.0f)): CubeNode
This function is used to draw a wall in the scene using the SceneView library and the Filament engine
Return
a CubeNode representing the wall
Parameters
engine
: the engine used to render the scene
position
: the position of the wall
size
: the size of the wall
orientation
: the orientation of the wall
rotation Pos
: the rotation of the wall
material Loader
: the material loader used to load the material of the wall