Skip to content

Instantly share code, notes, and snippets.

@Henry-E
Last active August 29, 2015 14:22
Show Gist options
  • Save Henry-E/adb616570f595b1493c6 to your computer and use it in GitHub Desktop.
Save Henry-E/adb616570f595b1493c6 to your computer and use it in GitHub Desktop.
//initialise this variable
shootingRangeDeg = 5f;
if( atan2 * mathf.Rad2Deb < shootingRangeDeg )
fire();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment