Skip to content

Instantly share code, notes, and snippets.

View ciwolsey's full-sized avatar

Carl Wolsey ciwolsey

  • Yorkshire, England
View GitHub Profile
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",
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
@ciwolsey
ciwolsey / SoHacky.cs
Created September 17, 2018 09:59
Hide Oculus Avatar hands when interactable object is grabbed
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using VRTK;
namespace ViveSpray
{
public class HideHandsOculus : MonoBehaviour {
private GameObject controller = null;
using UnityEngine;
using VRTK;
using ViveSpray;
public class RenderPointerOnHit : MonoBehaviour
{
public bool togglePointerOnHit = false;
private void Start()
{
@ciwolsey
ciwolsey / example.cs
Last active September 14, 2018 23:26
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
using UnityEngine;
using FreeImageAPI;
using System.Threading;
using System;
public class ThreadedTexture2D : MonoBehaviour
{
// The actual Texture
public Texture2D tex;
x=0.018
y=-0.1
z=-0.09
rx=90
ry=90
rz=90
fov=39
near=0.1
far=1000
nearOffset=500
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();
}
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';
import Button from 'antd/lib/button';
import Head from 'next/head';
const App = () =>
<div>
<Head>
<meta name='viewport' content='width=device-width, initial-scale=1' />
<meta charSet='utf-8' />
<link rel='stylesheet' href='//cdnjs.cloudflare.com/ajax/libs/antd/2.9.3/antd.min.css' />
</Head>