Skip to content

Commit df0302a

Browse files
Merge branch 'master' of github.com:arthurnishimoto/omicron-unity
# Conflicts: # Assets/Examples/Cube World/Cube World.unity
2 parents 9ad9d45 + 19455bb commit df0302a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+409
-340
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ getRealPlayerController.prefab
6767
getRealPlayerController.prefab.meta
6868
getRealSkybox.prefab
6969
getRealSkybox.prefab.meta
70-
Resources.meta
7170
gr2DUISkin.guiskin
7271
gr2DUISkin.guiskin.meta
7372
GUIs.meta
14.6 KB
Binary file not shown.

Assets/Examples/Shooter/CAVE2 Simple Shooter.unity.meta renamed to Assets/CAVE2-Screen Config/CAVE2 Screen Config.unity.meta

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Examples/Shooter/Prefabs/Fireball with Sparks.prefab.meta renamed to Assets/CAVE2-Screen Config/Materials/Screen.mat.meta

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Examples/Shooter/Prefabs/Laser - Red.prefab.meta renamed to Assets/CAVE2-Screen Config/Materials/ScreenBorder.mat.meta

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
11.7 KB
Binary file not shown.

Assets/Examples/Shooter/CAVE2 Simple Shooter/NavMesh.asset.meta renamed to Assets/CAVE2-Screen Config/Prefabs/Display.prefab.meta

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
5+
public class DisplayInfo : MonoBehaviour {
6+
7+
// getReal3D screen parameters
8+
public Vector3 Px_UpperLeft;
9+
public Vector3 Px_LowerLeft;
10+
public Vector3 Px_LowerRight;
11+
12+
// CalVR screen parameters
13+
public Vector3 origin; // pixel origin
14+
public float h; // Screen rotation
15+
16+
// Use this for initialization
17+
void Start () {
18+
Px_UpperLeft = gameObject.transform.Find("Borders/PixelSpace/Px-UpperLeft").position;
19+
Px_LowerLeft = gameObject.transform.Find("Borders/PixelSpace/Px-LowerLeft").position;
20+
Px_LowerRight = gameObject.transform.Find("Borders/PixelSpace/Px-LowerRight").position;
21+
22+
origin = gameObject.transform.Find("Borders/PixelSpace").position;
23+
h = gameObject.transform.Find("Borders/PixelSpace").eulerAngles.y;
24+
}
25+
}

0 commit comments

Comments
 (0)