Package-level declarations

Functions

Link copied to clipboard
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

Link copied to clipboard
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

Link copied to clipboard
fun onDoubleTap(cameraNode: CameraNode, cameraConfiguration: CameraConfiguration = CameraConfiguration(), selectedNodePosition: Float2 = Float2(0f, 0f))

This function is called when the user performs a double tap gesture on the screen. It is responsible for handling the double tap gesture.

Link copied to clipboard
fun onMove(cameraNode: CameraNode, cameraConfiguration: CameraConfiguration, moveGestureDetector: MoveGestureDetector)

This function is called when the user performs a pan gesture on the screen. It is responsible for panning the 3D scene.

Link copied to clipboard
fun onRotate(cameraNode: CameraNode, cameraConfiguration: CameraConfiguration, gestureDetector: RotateGestureDetector)

This function is called when the user performs a rotation gesture on the screen. It is responsible for rotating the 3D scene.

Link copied to clipboard
fun onScale(cameraNode: CameraNode, cameraConfiguration: CameraConfiguration, scaleGestureDetector: ScaleGestureDetector)

This function is called when the user performs a pinch gesture on the screen. It is responsible for scaling the 3D scene.

Link copied to clipboard
fun switchFrom2DTo3D(cameraNode: CameraNode, cameraConfiguration: CameraConfiguration = CameraConfiguration())

This function is called when the user switches from 2D to 3D or vice versa. It is responsible for switching the camera from 2D to 3D view mode and vice versa.