Created
November 19, 2017 05:39
-
-
Save flushpot1125/14e4e13f79e9d67d163bdf568a402f9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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