clean project
This commit is contained in:
2756
Assets/Oculus/Avatar/Samples/GripPoses/GripPoses.unity
Normal file
2756
Assets/Oculus/Avatar/Samples/GripPoses/GripPoses.unity
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 697c6df5e1eddad40b634d311b0bb2e5
|
||||
timeCreated: 1477966491
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/Avatar/Samples/GripPoses/Scripts.meta
Normal file
9
Assets/Oculus/Avatar/Samples/GripPoses/Scripts.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 85678699140c6c3429a87f4d679b1a17
|
||||
folderAsset: yes
|
||||
timeCreated: 1477957292
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,31 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System;
|
||||
|
||||
public class PoseEditHelper : MonoBehaviour {
|
||||
|
||||
public Transform poseRoot;
|
||||
|
||||
void OnDrawGizmos()
|
||||
{
|
||||
if (poseRoot != null)
|
||||
{
|
||||
DrawJoints(poseRoot);
|
||||
}
|
||||
}
|
||||
|
||||
private void DrawJoints(Transform joint)
|
||||
{
|
||||
Gizmos.DrawWireSphere(joint.position, 0.005f);
|
||||
for (int i = 0; i < joint.childCount; ++i)
|
||||
{
|
||||
Transform child = joint.GetChild(i);
|
||||
if (child.name.EndsWith("_grip") || child.name.EndsWith("hand_ignore"))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Gizmos.DrawLine(joint.position, child.position);
|
||||
DrawJoints(child);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6bc5b4ba964e02b4ea773b2aaca7dc67
|
||||
timeCreated: 1477957304
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user