gameoverhack / ofxOpenNI

Wrapper for OpenNI, NITE and SensorKinect
gingold.com.au
Other
246 stars 121 forks source link

Update ofxOpenNI.cpp #43

Open cindyloo opened 10 years ago

cindyloo commented 10 years ago

so, I needed to extract the user's CoM in order to ignore any user not in the x-y-z required space. However, I needed to be able to discount users that are bIsFound and bIsTracking == false even during calibration. Hence, I pulled the CoM call out of under if(g_User.GetSkeletonCap().IsTracking(nID)) so that I could check the position for all "trackedUsers".... If anyone thinks I should have done it differently, let me know! cheers, Cindy