Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created November 19, 2017 05:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save flushpot1125/14e4e13f79e9d67d163bdf568a402f9c to your computer and use it in GitHub Desktop.
//detect hands angle
private float HandFeatureAngle()
{
return Mathf.Atan2(transform.position.x - _handFeature.transform.position.x,
transform.position.z - _handFeature.transform.position.z) * Mathf.Rad2Deg;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment