Skip to content

Instantly share code, notes, and snippets.

@skymeson
skymeson / RotateCubeAroundAxis.cs
Created July 16, 2019 20:48
RotateCubeAroundAxis
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RotateCubeAroundAxis : MonoBehaviour
{
private bool rotate_toggle = false;
void Update()
@skymeson
skymeson / OpacityChanger.cs
Created July 16, 2019 20:59
Opacity Changer
using UnityEngine;
public class OpacityChanger : MonoBehaviour
{
public Material target;
public void UpdateOpacity(float alphaValue)
{
Color color = target.color;
color.a = alphaValue;
target.color = color;
}
@skymeson
skymeson / vive-tracker-ubuntu-instructions.md
Created July 17, 2019 21:50 — forked from DanielArnett/vive-tracker-ubuntu-instructions.md
How to use the HTC Vive Trackers in Ubuntu using Python 3.6.

This tutorial will guide you through the setup of the HTC Vive Tracker in Python 3.6 on Ubuntu 14.04.

Prerequesites

Up to date graphics drivers

x86 architecture

SteamVR requires >4GB disk space

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Mirror;
[RequireComponent(typeof(NetworkIdentity))]
public class ExampleTest : NetworkBehaviour
{
public float sendRate = 25;