Skip to content

Instantly share code, notes, and snippets.

View Vlakdo's full-sized avatar

Vladimir Esquivel A Vlakdo

  • Bogota / Colombia
View GitHub Profile
@MeepsKitten
MeepsKitten / TwitchOAuth.cs
Created February 11, 2022 05:24
Twitch Implicit OAuth Unity Example
/*
* Simple Twitch IMPLICIT OAuth flow example
* by HELLCAT & MeepsKitten
*
* At first glance, this looks like more than it actually is.
* It's really no rocket science, promised! ;-)
* And for any further questions contact me directly or on the Twitch-Developers discord.
*
* 🐦 https://twitter.com/therealhellcat & https://twitter.com/MeepsKitten
* 📺 https://www.twitch.tv/therealhellcat & https://twitch.tv/MeepsKitten
@shiwano
shiwano / AngleGetter.cs
Created July 15, 2015 10:19
Getting 360 angle between two 3d vectors for Unity3D.
public static class Utility
{
public static float CalculateAngle(Vector3 from, Vector3 to)
{
return Quaternion.FromToRotation(Vector3.up, to - from).eulerAngles.z;
}
}