public OvrvisionGetTrackingVec3 ( System mdata ) : int | ||
mdata | System | |
return | int |
//Ovrvision Tracking Render private int OvrvisionTrackRender() { float[] markerGet = new float[3]; GCHandle marker = GCHandle.Alloc(markerGet, GCHandleType.Pinned); //Get marker data int ri = OvrPro.OvrvisionGetTrackingVec3(marker.AddrOfPinnedObject()); if (ri == 0) { return(0); } Vector3 fgpos = new Vector3(markerGet[0], markerGet[1], markerGet[2]); OvrvisionHandTracker[] otobjs = GameObject.FindObjectsOfType(typeof(OvrvisionHandTracker)) as OvrvisionHandTracker[]; foreach (OvrvisionHandTracker otobj in otobjs) { otobj.UpdateTransformNone(); if (fgpos.z <= 0.0f) { continue; } otobj.UpdateTransform(fgpos); } marker.Free(); return(ri); }