mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix camera
This commit is contained in:
parent
52bdbdc65b
commit
67db795368
1 changed files with 0 additions and 14 deletions
|
|
@ -147,20 +147,6 @@ class CameraController extends Object {
|
|||
nextCameraPitch += deltaposY * factor;
|
||||
nextCameraYaw += deltaposX * factor;
|
||||
|
||||
if (Math.abs(deltaposX) > 0.001)
|
||||
hasXInput = true;
|
||||
else
|
||||
hasXInput = false;
|
||||
if (Math.abs(deltaposY) > 0.001)
|
||||
hasYInput = true;
|
||||
else
|
||||
hasYInput = false;
|
||||
|
||||
if (MarbleGame.instance.touchInput.cameraInput.pressed) {
|
||||
hasXInput = true;
|
||||
hasYInput = true;
|
||||
}
|
||||
|
||||
// var rotX = deltaposX * 0.001 * Settings.controlsSettings.cameraSensitivity * Math.PI * 2;
|
||||
// var rotY = deltaposY * 0.001 * Settings.controlsSettings.cameraSensitivity * Math.PI * 2;
|
||||
// CameraYaw -= rotX;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue