Wednesday, October 20, 2021
create random uniform distribution in a circle
https://github.com/rehmanx/CodeCreatePlay/blob/main/PseudoRandomNumberGenerators/RandUniformPointsInCircle.md
Saturday, October 16, 2021
Friday, October 8, 2021
Check android installed app
https://answers.unity.com/questions/627703/detect-if-app-is-installed-on-android.html
public bool IsAppInstalled(string bundleID){
#if UNITY_ANDROID
AndroidJavaClass up = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
AndroidJavaObject ca = up.GetStatic<AndroidJavaObject>("currentActivity");
AndroidJavaObject packageManager = ca.Call<AndroidJavaObject>("getPackageManager");
Debug.Log(" ********LaunchOtherApp ");
AndroidJavaObject launchIntent = null;
//if the app is installed, no errors. Else, doesn't get past next line
try{
launchIntent = packageManager.Call<AndroidJavaObject>("getLaunchIntentForPackage",bundleID);
//
// ca.Call("startActivity",launchIntent);
}catch(Exception ex){
Debug.Log("exception"+ex.Message);
}
if(launchIntent == null)
return false;
return true;
#else
return false;
#endif
"market://details?q=pname:com.myCompany.myAppName/"
Application.OpenURL ("market://details?id=com.example.android"); misspellings
Thursday, September 30, 2021
Interesting extend Algorthim A*
https://www.redblobgames.com/
Circular Obstacle Pathfinding
https://redblobgames.github.io/circular-obstacle-pathfinding/
How to find an end point of an arc given another end point, radius, and arc direction?
https://math.stackexchange.com/questions/275201/how-to-find-an-end-point-of-an-arc-given-another-end-point-radius-and-arc-dire
Calculate the length of the arc
https://www.dummies.com/education/math/geometry/how-to-determine-the-length-of-an-arc-2/
http://paulbourke.net/geometry/pointlineplane/
http://paulbourke.net/geometry/circlesphere/
Wednesday, September 15, 2021
Event Declaration
https://stackoverflow.com/.../how-to-use-c-sharp-events...
Sunday, September 12, 2021
Animation Instancing
https://blog.unity.com/technology/animation-instancing-instancing-for-skinnedmeshrenderer
https://www.youtube.com/watch?v=_GGVlzAcWgA