Page 1 of 1

Determine whether rigid body is not tracked using NatNet

Posted: Wed Sep 03, 2014 1:20 am
by christoph
What is the official way to determine that a rigid body is currently not seen in NatNet? I test for all members being zero, but I am not sure whether this is sufficient.

Re: Determine whether rigid body is not tracked using NatNet

Posted: Thu Oct 02, 2014 10:22 am
by morgan
New to NatNet SDK v2.6 is the TrackingValid flag for rigid bodies. See the SampleClient for an example of how to use, but basically:

Code: Select all

        // params
        // 0x01 : bool, rigid body was successfully tracked in this frame
        bool bTrackingValid = data->RigidBodies[i].params & 0x01;
Morgan