Exemplo n.º 1
0
        public static Vector2 CollideDirectional(Vector2 v, int i)
        {
            Vector2 normal = DIRECTIONS[i];

            return(v - (2 * PathHelper.DotProduct(v, normal) * normal));
        }