12 if(!(scn->load("data/vrhands.obj"))) {
18 void destroy_vrhands()
26 for(int i=0; i<2; i++) {
27 if(!(vrhand[i].src = goatvr_get_hand_tracker(i))) {
28 vrhand[i].valid = false;
31 goatvr_source_position(vrhand[i].src, &vrhand[i].pos.x);
32 goatvr_source_orientation(vrhand[i].src, &vrhand[i].rot.x);
33 float *mat = goatvr_source_matrix(vrhand[i].src);
34 memcpy(vrhand[i].xform[0], mat, 16 * sizeof(float));
35 vrhand[i].valid = true;