This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"actions": [ | |
{ | |
"name": "/actions/default/in/InteractUI", | |
"type": "boolean" | |
}, | |
{ | |
"name": "/actions/default/in/Teleport", | |
"type": "boolean" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Initiating legacy licensing module | |
LICENSE SYSTEM [2018119 20:22:45] Next license update check is after 2018-11-10T19:25:12 | |
Built from '2018.3/staging' branch; Version is '2018.3.0b9 (a3326ae325b2) revision 10695274'; Using compiler version '191326128' | |
OS: 'Windows 10 (10.0.0) 64bit' Language: 'en' Physical Memory: 16336 MB | |
BatchMode: 0, IsHumanControllingUs: 1, StartBugReporterOnCrash: 1, Is64bit: 1, IsPro: 0 | |
[Package Manager] Server::Start -- Port 59641 was selected | |
ListPackages failed, output: { | |
"name": "unity-editor", | |
"version": "5.7.0", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
totalClasses = input("How many classes are you taking?") | |
totalClasses = int(totalClasses) | |
i = 0 | |
b = 1 | |
tempGPA = 0 | |
def main(tempGradeFloat, tempCredits): | |
global tempGPA | |
tempGPA += tempGradeFloat*tempCredits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using VRTK; | |
namespace ViveSpray | |
{ | |
public class HideHandsOculus : MonoBehaviour { | |
private GameObject controller = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using VRTK; | |
using ViveSpray; | |
public class RenderPointerOnHit : MonoBehaviour | |
{ | |
public bool togglePointerOnHit = false; | |
private void Start() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Knob : MonoBehaviour { | |
private void OnEnable() | |
{ | |
// Subscribe to ValueChanged event and handle it with Rotator_ValueChanged method | |
rotator = GetComponent<VRTK_ArtificialRotator>() ValueChanged += Rotator_ValueChanged; | |
} | |
private void OnDisable() | |
{ | |
// Make sure to unsubscribe when object is disabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using FreeImageAPI; | |
using System.Threading; | |
using System; | |
public class ThreadedTexture2D : MonoBehaviour | |
{ | |
// The actual Texture | |
public Texture2D tex; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x=0.018 | |
y=-0.1 | |
z=-0.09 | |
rx=90 | |
ry=90 | |
rz=90 | |
fov=39 | |
near=0.1 | |
far=1000 | |
nearOffset=500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void RotatePlayspace() | |
{ | |
Transform hmd = VRTK_DeviceFinder.HeadsetCamera(); | |
Transform playArea = VRTK_DeviceFinder.PlayAreaTransform(); | |
teleporter.ForceTeleport( new Vector3(hmd.position.x, playArea.position.y, hmd.position.z), playArea.rotation * Quaternion.Euler(0, 90, 0) ); | |
_worldManager.EmitHideAllMenus(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import { withStyles } from 'material-ui/styles'; | |
import Grid from 'material-ui/Grid'; | |
import Paper from 'material-ui/Paper'; | |
import Typography from 'material-ui/Typography'; | |
import Tabs, { Tab } from 'material-ui/Tabs'; | |
import PhoneIcon from 'material-ui-icons/Phone'; | |
import FavoriteIcon from 'material-ui-icons/Favorite'; | |
import PersonPinIcon from 'material-ui-icons/PersonPin'; |