Kinect.KinectManager.GetUserPosition C# (CSharp) Method

GetUserPosition() public method

Gets the user position, relative to the sensor, in meters.
public GetUserPosition ( Int64 userId ) : Vector3
userId Int64 User ID
return UnityEngine.Vector3
        public Vector3 GetUserPosition(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].position;
                }
            }

            return Vector3.zero;
        }
KinectManager