Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System.Collections;
using Leap.Unity;
public class NewMagneticPinch : MonoBehaviour {
public float forceSpringConstant;
public float magnetDistance;
// In the unity component pannel, link the hand you are using here
public GameObject leapHand;
using UnityEngine;
using System.Collections;
using System;
public class ButtonPress : MonoBehaviour
{
public bool lockX;
public bool lockY;
public bool lockZ;