Inheritance: MonoBehaviour
Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     Gest = GameObject.Find("Brain").GetComponent<PerCGesture>();
     delta = new Vector3(0.0f,0.0f,0.0f);
     pc = MasterController.BRAIN.pci();
     dim = gameObject.GetComponent<BoxCollider>().size/2;
 }
Ejemplo n.º 2
0
 public PCInterface(GameObject instance)
 {
     _using_PCI = MasterController.BRAIN.pm().get_usePerceptual();
     _gesture = instance.GetComponent<PerCGesture>();
     _voice = instance.GetComponent<PerCVoice>();
     _handpos = new float[2]{0,0};
 }
Ejemplo n.º 3
0
    void Start()
    {
        xy = new float[2]{157.0f,121.0f};
        PG = gameObject.GetComponent<PerCGesture>();
        //in start i am just going to initialize the pipeline and get the resolution of the camera
        //to get the resolution, use the getRez function.

        myPipe = new PXCUPipeline();
        trackedLimb = PXCMGesture.GeoNode.Label.LABEL_BODY_HAND_PRIMARY;// Primary is first tracked hand
        myMode = PXCUPipeline.Mode.GESTURE|PXCUPipeline.Mode.COLOR_VGA  ; //the mode i want to use

        if(!myPipe.Init(myMode)){
            Debug.Log("The pipeline failed to initialize bras :'(\n");
            initiated=false;
            return;
        }
        else initiated = true;

        resFound = myPipe.QueryRGBSize(resolution);
        centeredX = true;
        centeredY = true;
    }