Skip to content

Instantly share code, notes, and snippets.

@patriciogonzalezvivo
Last active September 19, 2021 19:20
Show Gist options
  • Save patriciogonzalezvivo/4bd64d4660eefbfc30db to your computer and use it in GitHub Desktop.
Save patriciogonzalezvivo/4bd64d4660eefbfc30db to your computer and use it in GitHub Desktop.
Simple Camara Follow in OF
cam.setPosition( cam.getPosition()+(targetPos-cam.getPosition())*0.01 );
cam.lookAt(targetPos);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment