Skip to content

Commit c61fea3

Browse files
committed
Dial notch stronger haptics, touched environment a bit, Oscillator moved switch.
1 parent 3cecde2 commit c61fea3

File tree

4 files changed

+33
-30
lines changed

4 files changed

+33
-30
lines changed

Assets/Prefabs/environment/Floor.prefab

+18-18
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Transform:
3535
- {fileID: 4171040702118896079}
3636
- {fileID: 3734892502196975510}
3737
- {fileID: 8047393139643567634}
38-
- {fileID: 415997788408217172}
38+
- {fileID: 6719174038844998600}
3939
m_Father: {fileID: 0}
4040
m_RootOrder: 0
4141
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@@ -244,54 +244,54 @@ MeshRenderer:
244244
m_SortingLayerID: 0
245245
m_SortingLayer: 0
246246
m_SortingOrder: 0
247-
--- !u!1 &3449231672249966255
247+
--- !u!1 &1023643230035894300
248248
GameObject:
249249
m_ObjectHideFlags: 0
250250
m_CorrespondingSourceObject: {fileID: 0}
251251
m_PrefabInstance: {fileID: 0}
252252
m_PrefabAsset: {fileID: 0}
253253
serializedVersion: 6
254254
m_Component:
255-
- component: {fileID: 415997788408217172}
256-
- component: {fileID: 821032024429251235}
257-
- component: {fileID: 2297517962735990812}
258-
- component: {fileID: 4440453231792290802}
255+
- component: {fileID: 6719174038844998600}
256+
- component: {fileID: 7119619858923844047}
257+
- component: {fileID: 8469406596264120663}
258+
- component: {fileID: 2425458744785309331}
259259
m_Layer: 0
260260
m_Name: Cylinder (1)
261261
m_TagString: Untagged
262262
m_Icon: {fileID: 0}
263263
m_NavMeshLayer: 0
264264
m_StaticEditorFlags: 4294967295
265265
m_IsActive: 1
266-
--- !u!4 &415997788408217172
266+
--- !u!4 &6719174038844998600
267267
Transform:
268268
m_ObjectHideFlags: 0
269269
m_CorrespondingSourceObject: {fileID: 0}
270270
m_PrefabInstance: {fileID: 0}
271271
m_PrefabAsset: {fileID: 0}
272-
m_GameObject: {fileID: 3449231672249966255}
272+
m_GameObject: {fileID: 1023643230035894300}
273273
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
274-
m_LocalPosition: {x: -3.17, y: 1.63, z: -3.12}
275-
m_LocalScale: {x: 1, y: 1.7864, z: 1}
274+
m_LocalPosition: {x: -3.99, y: 2.858, z: -2.01}
275+
m_LocalScale: {x: 0.71172, y: 3.1156063, z: 0.71172}
276276
m_Children: []
277277
m_Father: {fileID: 168691358241275537}
278278
m_RootOrder: 6
279279
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
280-
--- !u!33 &821032024429251235
280+
--- !u!33 &7119619858923844047
281281
MeshFilter:
282282
m_ObjectHideFlags: 0
283283
m_CorrespondingSourceObject: {fileID: 0}
284284
m_PrefabInstance: {fileID: 0}
285285
m_PrefabAsset: {fileID: 0}
286-
m_GameObject: {fileID: 3449231672249966255}
286+
m_GameObject: {fileID: 1023643230035894300}
287287
m_Mesh: {fileID: 10206, guid: 0000000000000000e000000000000000, type: 0}
288-
--- !u!23 &2297517962735990812
288+
--- !u!23 &8469406596264120663
289289
MeshRenderer:
290290
m_ObjectHideFlags: 0
291291
m_CorrespondingSourceObject: {fileID: 0}
292292
m_PrefabInstance: {fileID: 0}
293293
m_PrefabAsset: {fileID: 0}
294-
m_GameObject: {fileID: 3449231672249966255}
294+
m_GameObject: {fileID: 1023643230035894300}
295295
m_Enabled: 1
296296
m_CastShadows: 1
297297
m_ReceiveShadows: 1
@@ -324,13 +324,13 @@ MeshRenderer:
324324
m_SortingLayerID: 0
325325
m_SortingLayer: 0
326326
m_SortingOrder: 0
327-
--- !u!136 &4440453231792290802
327+
--- !u!136 &2425458744785309331
328328
CapsuleCollider:
329329
m_ObjectHideFlags: 0
330330
m_CorrespondingSourceObject: {fileID: 0}
331331
m_PrefabInstance: {fileID: 0}
332332
m_PrefabAsset: {fileID: 0}
333-
m_GameObject: {fileID: 3449231672249966255}
333+
m_GameObject: {fileID: 1023643230035894300}
334334
m_Material: {fileID: 0}
335335
m_IsTrigger: 0
336336
m_Enabled: 1
@@ -523,8 +523,8 @@ Transform:
523523
m_PrefabAsset: {fileID: 0}
524524
m_GameObject: {fileID: 7994328210485235899}
525525
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
526-
m_LocalPosition: {x: 2.15, y: 1.63, z: 2.45}
527-
m_LocalScale: {x: 1, y: 1.7864, z: 1}
526+
m_LocalPosition: {x: 2.36, y: 2.858, z: 2.45}
527+
m_LocalScale: {x: 0.71172, y: 3.1156063, z: 0.71172}
528528
m_Children: []
529529
m_Father: {fileID: 168691358241275537}
530530
m_RootOrder: 5

Assets/Resources/Prefabs/Oscillator.prefab

+5-5
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ Transform:
526526
m_PrefabAsset: {fileID: 0}
527527
m_GameObject: {fileID: 1000010450949100}
528528
m_LocalRotation: {x: -0.5, y: -0.5, z: -0.5, w: 0.5}
529-
m_LocalPosition: {x: 0.0555, y: 0.0327, z: 0.0275}
529+
m_LocalPosition: {x: 0.053, y: -0.0003, z: 0.0275}
530530
m_LocalScale: {x: 0.75, y: 0.75, z: 0.75}
531531
m_Children:
532532
- {fileID: 4000013961779218}
@@ -2862,8 +2862,8 @@ MonoBehaviour:
28622862
prevShakeRot: 0
28632863
fineMult: 5
28642864
controllerRot: 0
2865-
notched: 0
2866-
steps: 4
2865+
isNotched: 0
2866+
notchSteps: 4
28672867
--- !u!1 &1000013495723170
28682868
GameObject:
28692869
m_ObjectHideFlags: 0
@@ -3549,8 +3549,8 @@ MonoBehaviour:
35493549
prevShakeRot: 0
35503550
fineMult: 5
35513551
controllerRot: 0
3552-
notched: 0
3553-
steps: 4
3552+
isNotched: 0
3553+
notchSteps: 4
35543554
--- !u!1 &1436940005579262
35553555
GameObject:
35563556
m_ObjectHideFlags: 0

Assets/Scripts/UI/dial/dial.cs

+6-4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public class dial : manipObject {
3737
public float prevShakeRot = 0f;
3838
public float fineMult = 5f;
3939

40+
public bool isNotched = false;
41+
public int notchSteps = 4;
42+
4043
public override void Awake() {
4144
base.Awake();
4245

@@ -162,9 +165,8 @@ public override void setState(manipState state) {
162165
}
163166
}
164167

165-
public bool isNotched = false;
166-
public int notchSteps = 4;
167-
168+
169+
168170
public override void grabUpdate(Transform t)
169171
{
170172
Vector2 temp = dialCoordinates(manipulatorObj.up);
@@ -199,7 +201,7 @@ public override void grabUpdate(Transform t)
199201
// haptics
200202
if (Mathf.Abs(realRot - prevShakeRot) > 10f)
201203
{
202-
if (manipulatorObjScript != null) manipulatorObjScript.hapticPulse(500);
204+
if (manipulatorObjScript != null) manipulatorObjScript.hapticPulse( isNotched ? (ushort) 3999 : (ushort) 700); // 3999 is max power
203205
prevShakeRot = realRot;
204206
turnCount++;
205207
}

ProjectSettings/ProjectSettings.asset

+4-3
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ PlayerSettings:
118118
16:10: 1
119119
16:9: 1
120120
Others: 1
121-
bundleVersion: 0.22
122-
preloadedAssets: []
121+
bundleVersion: 0.23
122+
preloadedAssets:
123+
- {fileID: 8207365043489784020, guid: 93c4f4428c8e3814dbf9d469c39e85d4, type: 2}
123124
metroInputSource: 0
124125
wsaTransparentSwapchain: 0
125126
m_HolographicPauseOnTrackingLoss: 1
@@ -168,7 +169,7 @@ PlayerSettings:
168169
tvOS: com.oculus.UnitySample
169170
buildNumber:
170171
iPhone: 0
171-
AndroidBundleVersionCode: 22
172+
AndroidBundleVersionCode: 23
172173
AndroidMinSdkVersion: 23
173174
AndroidTargetSdkVersion: 0
174175
AndroidPreferredInstallLocation: 0

0 commit comments

Comments
 (0)