void update() { const ofVec3f &p = joint->getPosition(); if (p.distance(points.front()) > 1) points.push_front(joint->getPosition()); if (points.size() > trackerLength){ points.pop_back(); } }
void update() { if (joint->getBvh()->isFrameNew()) { const ofVec3f &p = joint->getPosition(); points.push_front(joint->getPosition()); if (points.size() > 15) points.pop_back(); } }