Determine whether rigid body is not tracked using NatNet
Determine whether rigid body is not tracked using NatNet
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.
-
- NaturalPoint Employee
- Posts: 199
- Joined: Tue Jun 24, 2008 2:01 pm
- Location: Corvallis, OR, USA
- Contact:
Re: Determine whether rigid body is not tracked using NatNet
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:
Morgan
Code: Select all
// params
// 0x01 : bool, rigid body was successfully tracked in this frame
bool bTrackingValid = data->RigidBodies[i].params & 0x01;