Skip to content

Instantly share code, notes, and snippets.

@beckyconning
Created October 20, 2012 03:18
Show Gist options
  • Save beckyconning/3921889 to your computer and use it in GitHub Desktop.
Save beckyconning/3921889 to your computer and use it in GitHub Desktop.
navigation mesh polygon edges should have sprite z axis translate values.
entity z axis translate values are calculated so that the following are true:
an entity placed at the center of a polygon has the z translate value of the average of all edges
an entity placed at the intersection of two edges has the z translate value of the average of those two edges
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment