Last active
August 29, 2015 14:22
-
-
Save hecomi/821ca0c976c05fbbea1a to your computer and use it in GitHub Desktop.
指取るやつ
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; | |
public class LeapCollider : MonoBehaviour | |
{ | |
void Update() | |
{ | |
var controller = FindObjectOfType<HandController>(); | |
foreach (var hand in controller.hand_physics_) { | |
var fingers = hand.Value.fingers; | |
var thumb = fingers[0].transform; | |
var index = fingers[1].transform; | |
{ | |
var edgeCollider = index.Find("bone3").GetComponent<Collider>(); | |
Debug.Log(edgeCollider); | |
} | |
// ... | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment