Exemplo n.º 1
0
void RibbonSegment::update(ofNode inFront)
{
    //damply move towards the front;
    ofVec3f newPosition = node.getPosition() + (inFront.getPosition() - node.getPosition()) * .1;
    
    //almost there...
    node.setPosition( newPosition );
    
    //stay on target
    node.lookAt(inFront, node.getUpDir());
    
}