onTrackingFrame

onTrackingFrame

Method of Antilatency.Alt.Tracking.ITrackingDataCallback
Handles a full frame of tracking data. This callback gets called after every new optic frame becomes available and also contains the inertial data integrated over the time since the previous optic frame. This callback is typically called 20-50 times a second.
void onTrackingFrame(​OpticRay[] rays, Math.float3 inertialUp, InertialLeap inertialLeap, bool accelerometerOverflowOccured, bool gyroscopeOverflowOccured);

Parameters

OpticRay[] raysMath.float3 inertialUpInertialLeap inertialLeapbool accelerometerOverflowOccuredbool gyroscopeOverflowOccured