Example #1
0
        public int CheckControl(Ray r)
        {
            Vector3 pos_c = Vector3.Transform(Vector3.Zero, transform);

            if (RenderTools.intersectCircle(pos_c, 2f, 30, r.p1, r.p2))
            {
                return(1);
            }


            return(-1);
        }