aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/CameraController.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/CameraController.kt')
-rw-r--r--src/main/kotlin/CameraController.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/kotlin/CameraController.kt b/src/main/kotlin/CameraController.kt
index a3508c1..436b34b 100644
--- a/src/main/kotlin/CameraController.kt
+++ b/src/main/kotlin/CameraController.kt
@@ -2,8 +2,8 @@ import kotlinx.browser.document
class CameraController(
private val camera: Camera,
- private val moveSpeed: Double = 0.5,
- private val rotateSpeed: Int = 5,
+ private val moveSpeed: Double,
+ private val rotateSpeed: Int,
private val afterInput: () -> Unit
) {
@@ -19,6 +19,7 @@ class CameraController(
"KeyD" -> rotateClockwise()
}
afterInput()
+ console.log("x: ${camera.xPos} y: ${camera.yPos} r: ${camera.rotation}")
}
private fun moveForward() {