Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityGML
CityGMLViewer
Commits
6c65b317
Commit
6c65b317
authored
2 years ago
by
Matthias Betz
Browse files
Options
Download
Email Patches
Plain Diff
inverted panning directions
parent
b3da6958
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/hft/stuttgart/citygml/viewer/Camera.java
+2
-2
src/main/java/de/hft/stuttgart/citygml/viewer/Camera.java
with
2 additions
and
2 deletions
+2
-2
src/main/java/de/hft/stuttgart/citygml/viewer/Camera.java
+
2
-
2
View file @
6c65b317
...
...
@@ -116,7 +116,7 @@ public class Camera {
Vector2f
dir
=
new
Vector2f
(
res
.
x
,
res
.
y
);
dir
.
normalize
();
Vector2f
yDrag
=
new
Vector2f
();
dir
.
mul
((
float
)
-
dragDiffY
*
0.5f
,
yDrag
);
dir
.
mul
((
float
)
dragDiffY
*
0.5f
,
yDrag
);
// handle diffY
centerPos
.
add
(
yDrag
.
x
,
yDrag
.
y
,
0
);
...
...
@@ -126,7 +126,7 @@ public class Camera {
float
temp
=
dir
.
x
;
dir
.
x
=
dir
.
y
;
dir
.
y
=
-
temp
;
dir
.
mul
((
float
)
dragDiffX
*
0.5f
);
dir
.
mul
((
float
)
-
dragDiffX
*
0.5f
);
centerPos
.
add
(
dir
.
x
,
dir
.
y
,
0
);
eyePos
.
add
(
dir
.
x
,
dir
.
y
,
0
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment