Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
ar_volunteer
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈创杰
ar_volunteer
Commits
790ef2b1
Commit
790ef2b1
authored
Sep 04, 2017
by
Liang JingQiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试陀螺仪控制
parent
0d32c53e
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
13 additions
and
14 deletions
+13
-14
GyroController.cs.meta
Assets/GyroController.cs.meta
+2
-2
HelloAR.unity
Assets/HelloAR/Scenes/HelloAR.unity
+0
-0
bubble 1.mat
Assets/Jiggly Bubble Free/bubble 1.mat
+0
-0
bubble 1.mat.meta
Assets/Jiggly Bubble Free/bubble 1.mat.meta
+8
-0
bubble.mat
Assets/Jiggly Bubble Free/bubble.mat
+0
-0
bubble1.png
Assets/Jiggly Bubble Free/bubble1.png
+0
-0
TuoLuoYi.cs
Assets/TuoLuoYi.cs
+0
-9
bg4.mat
Assets/texture/Materials/bg4.mat
+0
-0
bg4.mat.meta
Assets/texture/Materials/bg4.mat.meta
+3
-3
ImageTarget-JsonFile-idback (1).prefab
Assets/预置/temp/ImageTarget-JsonFile-idback (1).prefab
+0
-0
No files found.
Assets/GyroController.cs.meta
View file @
790ef2b1
fileFormatVersion: 2
fileFormatVersion: 2
guid:
4ae49a2826c584c4dbf73b8da2842739
guid:
7acb5cbebafbbc74ba38e0125ad3fd0d
timeCreated: 150444
5964
timeCreated: 150444
8845
licenseType: Pro
licenseType: Pro
MonoImporter:
MonoImporter:
serializedVersion: 2
serializedVersion: 2
...
...
Assets/HelloAR/Scenes/HelloAR.unity
View file @
790ef2b1
No preview for this file type
Assets/Jiggly Bubble Free/bubble 1.mat
0 → 100644
View file @
790ef2b1
File added
Assets/Jiggly Bubble Free/bubble 1.mat.meta
0 → 100644
View file @
790ef2b1
fileFormatVersion: 2
guid: 654d36cb94dcec24580d0ca795eb9515
timeCreated: 1460044093
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
Assets/Jiggly Bubble Free/bubble.mat
View file @
790ef2b1
No preview for this file type
Assets/Jiggly Bubble Free/bubble1.png
View replaced file @
0d32c53e
View file @
790ef2b1
26 KB
|
W:
|
H:
26 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Assets/TuoLuoYi.cs
View file @
790ef2b1
...
@@ -3,12 +3,6 @@ using System.Collections;
...
@@ -3,12 +3,6 @@ using System.Collections;
public
class
TuoLuoYi
:
MonoBehaviour
public
class
TuoLuoYi
:
MonoBehaviour
{
{
private
Quaternion
cameraBase
=
Quaternion
.
identity
;
private
Quaternion
calibration
=
Quaternion
.
identity
;
private
Quaternion
baseOrientation
=
Quaternion
.
Euler
(
90
,
0
,
0
);
private
Quaternion
baseOrientationRotationFix
=
Quaternion
.
identity
;
private
Quaternion
referanceRotation
=
Quaternion
.
identity
;
private
const
float
lowPassFilterFactor
=
0.2f
;
private
const
float
lowPassFilterFactor
=
0.2f
;
protected
void
Start
()
protected
void
Start
()
...
@@ -32,9 +26,6 @@ public class TuoLuoYi : MonoBehaviour
...
@@ -32,9 +26,6 @@ public class TuoLuoYi : MonoBehaviour
//Input.gyro.attitude 返回值为 Quaternion类型,即设备旋转欧拉角
//Input.gyro.attitude 返回值为 Quaternion类型,即设备旋转欧拉角
// transform.rotation = Quaternion.Slerp(transform.rotation, Input.gyro.attitude, lowPassFilterFactor);
// transform.rotation = Quaternion.Slerp(transform.rotation, Input.gyro.attitude, lowPassFilterFactor);
transform
.
rotation
=
Quaternion
.
Slerp
(
Input
.
gyro
.
attitude
,
transform
.
rotation
,
lowPassFilterFactor
);
transform
.
rotation
=
Quaternion
.
Slerp
(
Input
.
gyro
.
attitude
,
transform
.
rotation
,
lowPassFilterFactor
);
// transform.rotation = Quaternion.Slerp(transform.rotation,
// cameraBase * (ConvertRotation(referanceRotation * Input.gyro.attitude) * GetRotFix()), lowPassFilterFactor);
}
}
void
OnGUI
()
void
OnGUI
()
...
...
Assets/texture/Materials/bg4.mat
0 → 100644
View file @
790ef2b1
File added
Assets/
预置/temp/ImageTarget-JsonFile-idback (1).prefab
.meta
→
Assets/
texture/Materials/bg4.mat
.meta
View file @
790ef2b1
fileFormatVersion: 2
fileFormatVersion: 2
guid:
7846200f0d41224409df825f7ac9bdd8
guid:
fd1e13197a368054b89ad6c0a4663777
timeCreated: 1504
443209
timeCreated: 1504
322564
licenseType: Pro
licenseType: Pro
NativeFormatImporter:
NativeFormatImporter:
mainObjectFileID:
100
100000
mainObjectFileID:
2
100000
userData:
userData:
assetBundleName:
assetBundleName:
assetBundleVariant:
assetBundleVariant:
Assets/预置/temp/ImageTarget-JsonFile-idback (1).prefab
deleted
100644 → 0
View file @
0d32c53e
File deleted
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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