Kinect.KinectManager.IsUserTurnedAround C# (CSharp) Method

IsUserTurnedAround() public method

Determines whether the given user is turned around or not.
public IsUserTurnedAround ( Int64 userId ) : bool
userId Int64 User ID
return bool
        public bool IsUserTurnedAround(Int64 userId)
        {
            if (dictUserIdToIndex.ContainsKey(userId))
            {
                int index = dictUserIdToIndex[userId];

                if (index >= 0 && index < sensorData.bodyCount &&
                   bodyFrame.bodyData[index].bIsTracked != 0)
                {
                    return bodyFrame.bodyData[index].isTurnedAround;
                }
            }

            return false;
        }
KinectManager