Skip to content

Instantly share code, notes, and snippets.

@hecomi
Last active August 29, 2015 14:22
Show Gist options
  • Save hecomi/821ca0c976c05fbbea1a to your computer and use it in GitHub Desktop.
Save hecomi/821ca0c976c05fbbea1a to your computer and use it in GitHub Desktop.
指取るやつ
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