Skip to content

Instantly share code, notes, and snippets.

@mooman219
Created July 5, 2013 23:35
Show Gist options
  • Save mooman219/5937864 to your computer and use it in GitHub Desktop.
Save mooman219/5937864 to your computer and use it in GitHub Desktop.
public static Vector calculateLookVector(Location location, Location target) {
return location.toVector().clone().subtract(target.toVector()).normalize();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment