public OrbbecPlayer ToOrbbecPlayer() { OrbbecPlayer ret = new OrbbecPlayer(); ret.bindUser = bindUser; ret.trackingBoneWorldPosDict = _trackingBoneWorldPosDict; ret.trackingBoneScreenPercentPosDict = _trackingBoneScreenPercentPosDict; return(ret); }
public static OrbbecPlayerOnTracking FromOrbbecPlayer(OrbbecPlayer oplayer) { OrbbecPlayerOnTracking tplayer = new OrbbecPlayerOnTracking(); tplayer.bindUser = oplayer.bindUser; tplayer._trackingBoneWorldPosDict = oplayer.trackingBoneWorldPosDict; tplayer._trackingBoneScreenPercentPosDict = oplayer.trackingBoneScreenPercentPosDict; tplayer.torsoPos = oplayer.GetTrackingWorldPos(SkeletonType.Torso); tplayer.trackingState = TrackingState.tracked; return(tplayer); }