tofu

Making something with OpenGL in Go
Log | Files | Refs

commit 32fc153c144cc360d1f9255d17021f100123d231
parent 351966b66e633903957361d86dccfce913eb9cb2
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Sun, 10 Nov 2024 07:47:55 +0900

change camera speed

Diffstat:
Mcmd/sample/main.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/sample/main.go b/cmd/sample/main.go @@ -32,7 +32,7 @@ func framebufferSizeCallback(w *glfw.Window, width int, height int) { } func keyboardCallback(w *glfw.Window) { - const speed = 0.3 + const speed = 0.1 if w.GetKey(glfw.KeyQ) == glfw.Press { w.SetShouldClose(true) } @@ -74,7 +74,7 @@ var ( ) func mouseCallback(w *glfw.Window, x, y float64) { - const sensitivity = 0.01 + const sensitivity = 0.005 if mouseCallbackFirstTime { cursorX, cursorY = float32(x), float32(y) mouseCallbackFirstTime = false