Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Better Together
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ios-dev-group-i
Better Together
Commits
a6f45bef
Commit
a6f45bef
authored
4 years ago
by
lukasWoyke
Browse files
Options
Downloads
Plain Diff
Merge branch 'hot-fix-gyroscope' into code-cleanup-lukas-fix
parents
09a20a2e
6b7d81c6
No related branches found
No related tags found
2 merge requests
!62
Fix master
,
!60
Code cleanup lukas fix
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Better Together/Better Together/Controls/GameGyroscopeController.swift
+2
-3
2 additions, 3 deletions
...er/Better Together/Controls/GameGyroscopeController.swift
with
2 additions
and
3 deletions
Better Together/Better Together/Controls/GameGyroscopeController.swift
+
2
−
3
View file @
a6f45bef
...
...
@@ -105,7 +105,6 @@ class GameGyroscopeController {
/// Caclulates the vector for controlling the character, by using the input
private
func
calculateAccVector
(
newAcc
:
SIMD3
<
Double
>
)
->
CGVector
{
checkReorientation
()
// Sets the initial position, with the first reading attempt.
if
resetOrientationActive
{
initialZ
=
newAcc
.
z
...
...
@@ -121,7 +120,7 @@ class GameGyroscopeController {
// Adjust movement when user olds device in LandscapeRight orientation.
if
newAcc
.
x
>
0
{
dx
*=
(
-
1
)
dy
*=
(
-
1
)
}
// Adjust this value, to adjust the speed of physical character in the gamescene.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment