This file contains hidden or 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 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; |