Finito.
This commit is contained in:
Binary file not shown.
Executable
BIN
Binary file not shown.
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c1be310d4dc3f0741a75768cc27f107e
|
||||
timeCreated: 1464323208
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Executable
BIN
Binary file not shown.
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: afd179201f2b58d4aafb3069a8889929
|
||||
timeCreated: 1464323284
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -5,6 +5,8 @@ public class LeftController : MonoBehaviour {
|
||||
|
||||
public GameObject MainCamera;
|
||||
public GameObject WarehouseCamera;
|
||||
public GameObject NormalRoom;
|
||||
public GameObject TransparentRoom;
|
||||
|
||||
Transform controllerRig;
|
||||
SteamVR_ControllerEvents controllerEvents;
|
||||
@@ -33,6 +35,8 @@ public class LeftController : MonoBehaviour {
|
||||
WarehouseCamera.SetActive(true);
|
||||
controllerRig.SetParent(WarehouseCamera.transform, false);
|
||||
inWarehouse = true;
|
||||
NormalRoom.SetActive(false);
|
||||
TransparentRoom.SetActive(true);
|
||||
}
|
||||
} else {
|
||||
cameraFade.SetFade(0.0f);
|
||||
@@ -40,6 +44,8 @@ public class LeftController : MonoBehaviour {
|
||||
controllerRig.SetParent(MainCamera.transform, false);
|
||||
WarehouseCamera.SetActive(false);
|
||||
inWarehouse = false;
|
||||
NormalRoom.SetActive(true);
|
||||
TransparentRoom.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b301ab6d21d8ae3489afc246a19b7a12
|
||||
timeCreated: 1464327233
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -9,6 +9,7 @@ public class RightController : MonoBehaviour {
|
||||
public GameObject MainCamera;
|
||||
public GameObject WarehouseCamera;
|
||||
|
||||
SteamVR_TrackedObject controller;
|
||||
SteamVR_LaserPointer laserPointer;
|
||||
SteamVR_ControllerEvents controllerEvents;
|
||||
BoxCollider boxCollider;
|
||||
@@ -27,7 +28,11 @@ public class RightController : MonoBehaviour {
|
||||
|
||||
Measurement currentMeasurement = null;
|
||||
|
||||
Vector3 lastPos;
|
||||
|
||||
void Awake() {
|
||||
controller = GetComponent<SteamVR_TrackedObject>();
|
||||
|
||||
laserPointer = GetComponent<SteamVR_LaserPointer>();
|
||||
|
||||
controllerEvents = GetComponent<SteamVR_ControllerEvents>();
|
||||
@@ -45,6 +50,8 @@ public class RightController : MonoBehaviour {
|
||||
|
||||
void Start () {
|
||||
laserPointer.pointer.layer = 9;
|
||||
|
||||
lastPos = transform.position;
|
||||
}
|
||||
|
||||
void Update () {
|
||||
@@ -63,6 +70,8 @@ public class RightController : MonoBehaviour {
|
||||
if (currentMeasurement != null) {
|
||||
currentMeasurement.EndPosition = transform.localPosition;
|
||||
}
|
||||
|
||||
lastPos = transform.position;
|
||||
}
|
||||
|
||||
void OnTriggerEnter(Collider other) {
|
||||
@@ -106,6 +115,10 @@ public class RightController : MonoBehaviour {
|
||||
var furnitureMini = heldItem.GetComponent<FurnitureMiniature>();
|
||||
if (furnitureMini) {
|
||||
furnitureMini.Release();
|
||||
/*var device = SteamVR_Controller.Input((int)controller.index);
|
||||
var rb = furnitureMini.GetComponent<Rigidbody>();
|
||||
rb.velocity = device.velocity;
|
||||
rb.angularVelocity = device.angularVelocity;*/
|
||||
}
|
||||
heldItem = null;
|
||||
}
|
||||
|
||||
@@ -220,7 +220,7 @@ public class SteamVR_Render : MonoBehaviour
|
||||
c.transform.localRotation = vr.eyes[i].rot;
|
||||
|
||||
// Update position to keep from getting culled
|
||||
cameraMask.transform.position = c.transform.position;
|
||||
//cameraMask.transform.position = c.transform.position;
|
||||
|
||||
var camera = c.GetComponent<Camera>();
|
||||
camera.targetTexture = SteamVR_Camera.GetSceneTexture(camera.hdr);
|
||||
@@ -321,9 +321,9 @@ public class SteamVR_Render : MonoBehaviour
|
||||
void Awake()
|
||||
{
|
||||
#if (UNITY_5_3 || UNITY_5_2 || UNITY_5_1 || UNITY_5_0)
|
||||
var go = new GameObject("cameraMask");
|
||||
go.transform.parent = transform;
|
||||
cameraMask = go.AddComponent<SteamVR_CameraMask>();
|
||||
//var go = new GameObject("cameraMask");
|
||||
//go.transform.parent = transform;
|
||||
//cameraMask = go.AddComponent<SteamVR_CameraMask>();
|
||||
#endif
|
||||
if (externalCamera == null && System.IO.File.Exists(externalCameraConfigPath))
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,6 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
|
||||
[ExecuteInEditMode]
|
||||
public class WarehouseRow : MonoBehaviour {
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user