From a1de093954532ab6d09b9e4b9eebb20c076fa6b7 Mon Sep 17 00:00:00 2001 From: Willem Date: Fri, 11 Feb 2022 18:07:15 +0100 Subject: [PATCH] change cam input processor --- .../gdxapp/matrix4d/ScreenMatrix4D.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main-gdxapp/src/main/love/distributedrebirth/gdxapp/matrix4d/ScreenMatrix4D.java b/main-gdxapp/src/main/love/distributedrebirth/gdxapp/matrix4d/ScreenMatrix4D.java index 05401bb9..6d298ce3 100644 --- a/main-gdxapp/src/main/love/distributedrebirth/gdxapp/matrix4d/ScreenMatrix4D.java +++ b/main-gdxapp/src/main/love/distributedrebirth/gdxapp/matrix4d/ScreenMatrix4D.java @@ -15,7 +15,7 @@ import com.badlogic.gdx.graphics.g3d.ModelInstance; import com.badlogic.gdx.graphics.g3d.Shader; import com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute; import com.badlogic.gdx.graphics.g3d.environment.DirectionalLight; -import com.badlogic.gdx.graphics.g3d.utils.CameraInputController; +import com.badlogic.gdx.graphics.g3d.utils.FirstPersonCameraController; import com.badlogic.gdx.graphics.g3d.utils.ModelBuilder; import com.badlogic.gdx.math.Matrix4; import com.badlogic.gdx.math.Vector3; @@ -33,7 +33,7 @@ import love.distributedrebirth.gdxapp.GDXAppMainAdapter; public class ScreenMatrix4D extends GDXAppMainAdapter { public Environment environment; public PerspectiveCamera cam; - public CameraInputController camController; + public FirstPersonCameraController camController; public Shader shader; public ModelBatch modelBatch; private Model grid; @@ -95,8 +95,8 @@ public class ScreenMatrix4D extends GDXAppMainAdapter { shader = new UserColorShader(); shader.init(); - - camController = new CameraInputController(cam); + camController = new FirstPersonCameraController(cam); + //camController = new CameraInputController(cam); Gdx.input.setInputProcessor(camController); //endregion