Exemplo n.º 1
0
	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();
		}
	}
Exemplo n.º 2
0
    void update()
    {
	   if (joint->getBvh()->isFrameNew())
		{
			const ofVec3f &p = joint->getPosition();

			points.push_front(joint->getPosition());

			if (points.size() > 15)
				points.pop_back();
		}


    }