Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
VAUnity
Commits
cb9091c9
Commit
cb9091c9
authored
Jan 03, 2017
by
Maurice Tayeb Andreas
Browse files
Set Controller Position in Update um Abweichung zu verhindern
parent
b6df6209
Changes
1
Hide whitespace changes
Inline
Side-by-side
LHMTurnAroundMenuController.cs
View file @
cb9091c9
...
...
@@ -34,6 +34,7 @@ public class LHMTurnAroundMenuController : MonoBehaviour {
actPadPos
=
device
.
GetAxis
();
dif
=
lastPadPos
.
x
-
actPadPos
.
x
;
gameObject
.
transform
.
RotateAround
(
pos
.
position
+
posoffset
,
pos
.
forward
,
dif
*
sensitivity
);
gameObject
.
transform
.
localPosition
=
posoffset
;
lastPadPos
=
actPadPos
;
}
}
...
...
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