コード例 #1
0
 // Use this for initialization
 void Start()
 {
     held = null;
     //create arm
     handL = gameObject.AddComponent <DetectJoints>() as DetectJoints;
     handL.SetTrackedJoint(handLeft);
     elbowL = elbow.AddComponent <DetectJoints>() as DetectJoints;
     elbowL.SetTrackedJoint(elbowLeft);
 }
コード例 #2
0
ファイル: grabRight.cs プロジェクト: aubreySimonson/8KLibrary
    public float openBookW, openBookH;     //how close to the center of books do you need to be?


    // Use this for initialization
    void Start()
    {
        held = null;
        //create arm
        handR = gameObject.AddComponent <DetectJoints>() as DetectJoints;
        handR.SetTrackedJoint(handRight);
        elbowR = elbow.AddComponent <DetectJoints>() as DetectJoints;
        elbowR.SetTrackedJoint(elbowRight);
    }
コード例 #3
0
    // Use this for initialization
    void Start()
    {
        held = null;        //casual reminder that this might break all of the things and should probably be cleaned up later
        Debug.Log("Grab script running");

        //create hand
        DetectJoints handL    = gameObject.AddComponent <DetectJoints>() as DetectJoints;
        JointType    handLeft = JointType.HandLeft;

        handL.SetTrackedJoint(handLeft);
    }